disable red screen of death for production builds
This commit is contained in:
parent
499303a733
commit
21e6b544d5
1 changed files with 3 additions and 4 deletions
|
|
@ -33,19 +33,18 @@ public class App extends Application {
|
|||
public void onCreate() {
|
||||
super.onCreate();
|
||||
|
||||
// enable for all builds to help with bug reports
|
||||
RedScreenOfDeath.init(this);
|
||||
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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue