mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 11:32:19 +00:00
replace ABS with AppCompat
// FREEBIE
This commit is contained in:
@@ -31,13 +31,7 @@ public class DynamicTheme {
|
||||
private static int getSelectedTheme(Activity activity) {
|
||||
String theme = TextSecurePreferences.getTheme(activity);
|
||||
|
||||
if (theme.equals("light")) {
|
||||
if (activity instanceof ConversationActivity) return R.style.TextSecure_LightTheme_ConversationActivity;
|
||||
else return R.style.TextSecure_LightTheme;
|
||||
} else if (theme.equals("dark")) {
|
||||
if (activity instanceof ConversationActivity) return R.style.TextSecure_DarkTheme_ConversationActivity;
|
||||
else return R.style.TextSecure_DarkTheme;
|
||||
}
|
||||
if (theme.equals("dark")) return R.style.TextSecure_DarkTheme;
|
||||
|
||||
return R.style.TextSecure_LightTheme;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user