Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 170e548a authored by Joe Onorato's avatar Joe Onorato
Browse files

use the holo theme in more places for >= honeycomb apps

Change-Id: Iad2bd65eaf203df458ea689144538b7a51beb4b3
parent 4c61aa3c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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);