disable red screen of death for production builds

This commit is contained in:
dkanada 2021-04-09 23:22:53 +09:00
commit 21e6b544d5

View file

@ -33,19 +33,18 @@ public class App extends Application {
public void onCreate() {
super.onCreate();
// enable for all builds to help with bug reports
if (BuildConfig.DEBUG) {
RedScreenOfDeath.init(this);
}
app = this;
database = createDatabase(this);
apiClient = createApiClient(this);
// default theme
if (!ThemeStore.isConfigured(this, 1)) {
ThemeStore.editTheme(this).primaryColorRes(R.color.md_indigo_500).accentColorRes(R.color.md_pink_A400).commit();
}
// dynamic shortcuts
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N_MR1) {
new DynamicShortcutManager(this).initDynamicShortcuts();
}