forked from upstream-mirrors/quik
Remove unused method
This commit is contained in:
@@ -249,13 +249,6 @@ public class ThemeManager {
|
|||||||
initializeTheme(Theme.fromString(mPrefs.getString(SettingsFragment.BACKGROUND, "offwhite")));
|
initializeTheme(Theme.fromString(mPrefs.getString(SettingsFragment.BACKGROUND, "offwhite")));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Loads all theme properties. Should be called during onCreate
|
|
||||||
* of each activity that contains fragments that use ThemeManager
|
|
||||||
*/
|
|
||||||
public static void themeActivity(QKActivity activity) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void setTheme(Theme theme) {
|
public static void setTheme(Theme theme) {
|
||||||
int startColor = mBackgroundColor;
|
int startColor = mBackgroundColor;
|
||||||
initializeTheme(theme);
|
initializeTheme(theme);
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ import com.moez.QKSMS.common.LiveViewManager;
|
|||||||
import com.moez.QKSMS.common.preferences.QKPreference;
|
import com.moez.QKSMS.common.preferences.QKPreference;
|
||||||
import com.moez.QKSMS.common.utils.ColorUtils;
|
import com.moez.QKSMS.common.utils.ColorUtils;
|
||||||
import com.moez.QKSMS.ui.ThemeManager;
|
import com.moez.QKSMS.ui.ThemeManager;
|
||||||
import com.moez.QKSMS.ui.settings.SettingsFragment;
|
|
||||||
import com.moez.QKSMS.ui.view.QKTextView;
|
import com.moez.QKSMS.ui.view.QKTextView;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@@ -113,8 +112,6 @@ public abstract class QKActivity extends AppCompatActivity {
|
|||||||
}
|
}
|
||||||
((QKTextView) findViewById(R.id.toolbar_title)).setTextColor(ThemeManager.getTextOnColorPrimary());
|
((QKTextView) findViewById(R.id.toolbar_title)).setTextColor(ThemeManager.getTextOnColorPrimary());
|
||||||
});
|
});
|
||||||
|
|
||||||
ThemeManager.themeActivity(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void showBackButton(boolean show) {
|
protected void showBackButton(boolean show) {
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ public abstract class QKPopupActivity extends QKActivity {
|
|||||||
setFinishOnTouchOutside(mPrefs.getBoolean(SettingsFragment.QUICKREPLY_TAP_DISMISS, true));
|
setFinishOnTouchOutside(mPrefs.getBoolean(SettingsFragment.QUICKREPLY_TAP_DISMISS, true));
|
||||||
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
|
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
|
||||||
setContentView(getLayoutResource());
|
setContentView(getLayoutResource());
|
||||||
ThemeManager.themeActivity(this);
|
|
||||||
|
|
||||||
((QKLinearLayout) findViewById(R.id.popup)).setBackgroundTint(ThemeManager.getBackgroundColor());
|
((QKLinearLayout) findViewById(R.id.popup)).setBackgroundTint(ThemeManager.getBackgroundColor());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user