mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-14 10:47:30 +00:00
Call delete stacktrace files function off the main thread.
This commit is contained in:
parent
b860493cc8
commit
0dc49ba273
@ -86,7 +86,7 @@ public final class FlavorTown {
|
|||||||
settingsHelper.putString(Constants.APP_UA, appUa);
|
settingsHelper.putString(Constants.APP_UA, appUa);
|
||||||
final String browserUa = UserAgentUtils.generateBrowserUA(browserUaCode);
|
final String browserUa = UserAgentUtils.generateBrowserUA(browserUaCode);
|
||||||
settingsHelper.putString(Constants.BROWSER_UA, browserUa);
|
settingsHelper.putString(Constants.BROWSER_UA, browserUa);
|
||||||
CrashReporterHelper.deleteAllStacktraceFiles(context);
|
AppExecutors.INSTANCE.getDiskIO().execute(() -> CrashReporterHelper.deleteAllStacktraceFiles(context));
|
||||||
Toast.makeText(context, R.string.updated, Toast.LENGTH_SHORT).show();
|
Toast.makeText(context, R.string.updated, Toast.LENGTH_SHORT).show();
|
||||||
settingsHelper.putInteger(Constants.PREV_INSTALL_VERSION, BuildConfig.VERSION_CODE);
|
settingsHelper.putInteger(Constants.PREV_INSTALL_VERSION, BuildConfig.VERSION_CODE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user