use the holo theme in more places for >= honeycomb apps
Change-Id: Iad2bd65eaf203df458ea689144538b7a51beb4b3
This commit is contained in:
@@ -265,7 +265,11 @@ class ContextImpl extends Context {
|
||||
public Resources.Theme getTheme() {
|
||||
if (mTheme == null) {
|
||||
if (mThemeResource == 0) {
|
||||
mThemeResource = com.android.internal.R.style.Theme;
|
||||
final Context outerContext = getOuterContext();
|
||||
mThemeResource = (outerContext.getApplicationInfo().targetSdkVersion
|
||||
>= Build.VERSION_CODES.HONEYCOMB)
|
||||
? com.android.internal.R.style.Theme_Holo
|
||||
: com.android.internal.R.style.Theme;
|
||||
}
|
||||
mTheme = mResources.newTheme();
|
||||
mTheme.applyStyle(mThemeResource, true);
|
||||
|
||||
Reference in New Issue
Block a user