Fix wrong colored app shortcuts after clean install
This commit is contained in:
parent
1e62fc5dfc
commit
8312fdb3d2
2 changed files with 10 additions and 9 deletions
|
|
@ -8,6 +8,7 @@ import com.anjlab.android.iab.v3.TransactionDetails;
|
|||
import com.crashlytics.android.Crashlytics;
|
||||
import com.crashlytics.android.answers.Answers;
|
||||
import com.crashlytics.android.core.CrashlyticsCore;
|
||||
import com.kabouzeid.appthemehelper.ThemeStore;
|
||||
import com.kabouzeid.gramophone.appshortcuts.DynamicShortcutManager;
|
||||
|
||||
import io.fabric.sdk.android.Fabric;
|
||||
|
|
@ -30,6 +31,15 @@ public class App extends Application {
|
|||
super.onCreate();
|
||||
app = this;
|
||||
|
||||
// default theme
|
||||
if (!ThemeStore.isConfigured(this, 1)) {
|
||||
ThemeStore.editTheme(this)
|
||||
.activityTheme(R.style.Theme_Phonograph_Light)
|
||||
.primaryColorRes(R.color.md_indigo_500)
|
||||
.accentColorRes(R.color.md_pink_A400)
|
||||
.commit();
|
||||
}
|
||||
|
||||
// Set up Crashlytics, disabled for debug builds
|
||||
Crashlytics crashlyticsKit = new Crashlytics.Builder()
|
||||
.core(new CrashlyticsCore.Builder().disabled(BuildConfig.DEBUG).build())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue