Merge "Misc fix on settings themes."
This commit is contained in:
committed by
Android (Google) Code Review
commit
fac57416b8
@@ -387,14 +387,10 @@ public class SettingsActivity extends SettingsDrawerActivity
|
||||
final boolean isSubSettings = this instanceof SubSettings ||
|
||||
intent.getBooleanExtra(EXTRA_SHOW_FRAGMENT_AS_SUBSETTING, false);
|
||||
|
||||
// If this is a sub settings, then apply the SubSettings Theme for the ActionBar content insets
|
||||
// If this is a sub settings, then apply the SubSettings Theme for the ActionBar content
|
||||
// insets
|
||||
if (isSubSettings) {
|
||||
// Check also that we are not a Theme Dialog as we don't want to override them
|
||||
final int themeResId = getThemeResId();
|
||||
if (themeResId != R.style.Theme_DialogWhenLarge &&
|
||||
themeResId != R.style.Theme_SubSettingsDialogWhenLarge) {
|
||||
setTheme(R.style.Theme_SubSettings);
|
||||
}
|
||||
setTheme(R.style.Theme_SubSettings);
|
||||
}
|
||||
|
||||
setContentView(mIsShowingDashboard ?
|
||||
|
Reference in New Issue
Block a user