mirror of
https://github.com/whyorean/AuroraStore.git
synced 2026-06-19 21:19:16 -04:00
Issue #363 hopefully fixed a crash on amazon tvs while entering preferences screen
This commit is contained in:
@@ -13,6 +13,9 @@ public class ThemeManager {
|
||||
switch (theme) {
|
||||
default:
|
||||
case PreferenceActivity.THEME_NONE:
|
||||
if (isAmazonTv(activity)) {
|
||||
activity.setTheme(getThemeDark());
|
||||
}
|
||||
break;
|
||||
case PreferenceActivity.THEME_LIGHT:
|
||||
activity.setTheme(getThemeLight());
|
||||
@@ -46,4 +49,8 @@ public class ThemeManager {
|
||||
return android.R.style.Theme;
|
||||
}
|
||||
}
|
||||
|
||||
static private boolean isAmazonTv(Activity activity) {
|
||||
return ((YalpStoreApplication) activity.getApplication()).isTv() && Build.MANUFACTURER.toLowerCase().contains("amazon");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user