From: Damyan Ivanov Date: Sun, 17 Feb 2019 20:02:30 +0000 (+0200) Subject: not used anymore X-Git-Tag: v0.7~76 X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=commitdiff_plain;h=a104cd7196dd6428f32a5f5bedaa0cc99c31b024 not used anymore --- 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); - } - } }