Merge branch 'master' into Materight-master
This commit is contained in:
commit
196aac59ce
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())
|
||||
|
|
|
|||
|
|
@ -23,15 +23,6 @@ public abstract class AbsThemeActivity extends ATHToolbarActivity {
|
|||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
// 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();
|
||||
}
|
||||
getSharedPreferences("[[kabouzeid_app-theme-helper]]", 0).edit().putInt("activity_theme", PreferenceUtil.getInstance(this).getGeneralTheme()).commit(); // TEMPORARY FIX
|
||||
super.onCreate(savedInstanceState);
|
||||
MaterialDialogsUtil.updateMaterialDialogsThemeSingleton(this);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue