From a104cd7196dd6428f32a5f5bedaa0cc99c31b024 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 17 Feb 2019 22:02:30 +0200 Subject: [PATCH] not used anymore --- .../mobileledger/MobileLedgerApplication.java | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/MobileLedgerApplication.java b/app/src/main/java/net/ktnx/mobileledger/MobileLedgerApplication.java index 1bf8b54e..836ea3a1 100644 --- a/app/src/main/java/net/ktnx/mobileledger/MobileLedgerApplication.java +++ b/app/src/main/java/net/ktnx/mobileledger/MobileLedgerApplication.java @@ -21,7 +21,6 @@ import android.app.Application; import android.content.SharedPreferences; import android.content.res.Configuration; import android.content.res.Resources; -import android.os.Build; import android.preference.PreferenceManager; import net.ktnx.mobileledger.model.Data; @@ -35,7 +34,6 @@ public class MobileLedgerApplication extends Application { @Override public void onCreate() { super.onCreate(); - updateColorValues(); updateMonthNames(); MLDB.init(this); SharedPreferences p = PreferenceManager.getDefaultSharedPreferences(this); @@ -57,23 +55,6 @@ public class MobileLedgerApplication extends Application { @Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); - updateColorValues(); updateMonthNames(); } - private void updateColorValues() { - Resources rm = getResources(); - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { - Resources.Theme theme = getTheme(); - Globals.tableRowDarkBG = rm.getColor(R.color.table_row_dark_bg, theme); - Globals.tableRowLightBG = rm.getColor(R.color.table_row_light_bg, theme); - Globals.primaryDark = rm.getColor(R.color.colorPrimaryDark, theme); - Globals.defaultTextColor = rm.getColor(android.R.color.tab_indicator_text, theme); - } - else { - Globals.tableRowDarkBG = rm.getColor(R.color.table_row_dark_bg); - Globals.tableRowLightBG = rm.getColor(R.color.table_row_light_bg); - Globals.primaryDark = rm.getColor(R.color.colorPrimaryDark); - Globals.defaultTextColor = rm.getColor(android.R.color.tab_indicator_text); - } - } } -- 2.39.2