Java Code Examples for android.content.res.Resources#selectDefaultTheme()

The following examples show how to use android.content.res.Resources#selectDefaultTheme() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ContextImpl.java    From AndroidComponentPlugin with Apache License 2.0 5 votes vote down vote up
@Override
public Resources.Theme getTheme() {
    synchronized (mSync) {
        if (mTheme != null) {
            return mTheme;
        }

        mThemeResource = Resources.selectDefaultTheme(mThemeResource,
                getOuterContext().getApplicationInfo().targetSdkVersion);
        initializeTheme();

        return mTheme;
    }
}
 
Example 2
Source File: ContextImpl.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
@Override
public Resources.Theme getTheme() {
    synchronized (mSync) {
        if (mTheme != null) {
            return mTheme;
        }

        mThemeResource = Resources.selectDefaultTheme(mThemeResource,
                getOuterContext().getApplicationInfo().targetSdkVersion);
        initializeTheme();

        return mTheme;
    }
}
 
Example 3
Source File: ContextThemeWrapper.java    From android_9.0.0_r45 with Apache License 2.0 5 votes vote down vote up
@Override
public Resources.Theme getTheme() {
    if (mTheme != null) {
        return mTheme;
    }

    mThemeResource = Resources.selectDefaultTheme(mThemeResource,
            getApplicationInfo().targetSdkVersion);
    initializeTheme();

    return mTheme;
}
 
Example 4
Source File: ContextImpl.java    From AndroidComponentPlugin with Apache License 2.0 5 votes vote down vote up
@Override
public Resources.Theme getTheme() {
    if (mTheme != null) {
        return mTheme;
    }

    mThemeResource = Resources.selectDefaultTheme(mThemeResource,
            getOuterContext().getApplicationInfo().targetSdkVersion);
    initializeTheme();

    return mTheme;
}
 
Example 5
Source File: ContextImpl.java    From AndroidComponentPlugin with Apache License 2.0 5 votes vote down vote up
@Override
public Resources.Theme getTheme() {
    if (mTheme == null) {
        mThemeResource = Resources.selectDefaultTheme(mThemeResource,
                getOuterContext().getApplicationInfo().targetSdkVersion);
        mTheme = mResources.newTheme();
        mTheme.applyStyle(mThemeResource, true);
    }
    return mTheme;
}
 
Example 6
Source File: ContextImpl.java    From AndroidComponentPlugin with Apache License 2.0 5 votes vote down vote up
@Override
public Resources.Theme getTheme() {
    if (mTheme == null) {
        mThemeResource = Resources.selectDefaultTheme(mThemeResource,
                getOuterContext().getApplicationInfo().targetSdkVersion);
        mTheme = mResources.newTheme();
        mTheme.applyStyle(mThemeResource, true);
    }
    return mTheme;
}
 
Example 7
Source File: ContextImpl.java    From AndroidComponentPlugin with Apache License 2.0 5 votes vote down vote up
@Override
public Resources.Theme getTheme() {
    if (mTheme == null) {
        mThemeResource = Resources.selectDefaultTheme(mThemeResource,
                getOuterContext().getApplicationInfo().targetSdkVersion);
        mTheme = mResources.newTheme();
        mTheme.applyStyle(mThemeResource, true);
    }
    return mTheme;
}
 
Example 8
Source File: ContextImpl.java    From AndroidComponentPlugin with Apache License 2.0 5 votes vote down vote up
@Override
public Resources.Theme getTheme() {
    if (mTheme == null) {
        mThemeResource = Resources.selectDefaultTheme(mThemeResource,
                getOuterContext().getApplicationInfo().targetSdkVersion);
        mTheme = mResources.newTheme();
        mTheme.applyStyle(mThemeResource, true);
    }
    return mTheme;
}
 
Example 9
Source File: ContextImpl.java    From AndroidComponentPlugin with Apache License 2.0 5 votes vote down vote up
@Override
public Resources.Theme getTheme() {
    synchronized (mSync) {
        if (mTheme != null) {
            return mTheme;
        }

        mThemeResource = Resources.selectDefaultTheme(mThemeResource,
                getOuterContext().getApplicationInfo().targetSdkVersion);
        initializeTheme();

        return mTheme;
    }
}
 
Example 10
Source File: ContextImpl.java    From AndroidComponentPlugin with Apache License 2.0 5 votes vote down vote up
@Override
public Resources.Theme getTheme() {
    if (mTheme != null) {
        return mTheme;
    }

    mThemeResource = Resources.selectDefaultTheme(mThemeResource,
            getOuterContext().getApplicationInfo().targetSdkVersion);
    initializeTheme();

    return mTheme;
}
 
Example 11
Source File: ContextImpl.java    From AndroidComponentPlugin with Apache License 2.0 5 votes vote down vote up
@Override
public Resources.Theme getTheme() {
    if (mTheme == null) {
        mThemeResource = Resources.selectDefaultTheme(mThemeResource,
                getOuterContext().getApplicationInfo().targetSdkVersion);
        mTheme = mResources.newTheme();
        mTheme.applyStyle(mThemeResource, true);
    }
    return mTheme;
}
 
Example 12
Source File: ContextImpl.java    From AndroidComponentPlugin with Apache License 2.0 5 votes vote down vote up
@Override
public Resources.Theme getTheme() {
    if (mTheme == null) {
        mThemeResource = Resources.selectDefaultTheme(mThemeResource,
                getOuterContext().getApplicationInfo().targetSdkVersion);
        mTheme = mResources.newTheme();
        mTheme.applyStyle(mThemeResource, true);
    }
    return mTheme;
}
 
Example 13
Source File: ContextImpl.java    From AndroidComponentPlugin with Apache License 2.0 5 votes vote down vote up
@Override
public Resources.Theme getTheme() {
    if (mTheme == null) {
        mThemeResource = Resources.selectDefaultTheme(mThemeResource,
                getOuterContext().getApplicationInfo().targetSdkVersion);
        mTheme = mResources.newTheme();
        mTheme.applyStyle(mThemeResource, true);
    }
    return mTheme;
}
 
Example 14
Source File: ContextImpl.java    From AndroidComponentPlugin with Apache License 2.0 5 votes vote down vote up
@Override
public Resources.Theme getTheme() {
    synchronized (mSync) {
        if (mTheme != null) {
            return mTheme;
        }

        mThemeResource = Resources.selectDefaultTheme(mThemeResource,
                getOuterContext().getApplicationInfo().targetSdkVersion);
        initializeTheme();

        return mTheme;
    }
}
 
Example 15
Source File: ContextImpl.java    From AndroidComponentPlugin with Apache License 2.0 5 votes vote down vote up
@Override
public Resources.Theme getTheme() {
    synchronized (mSync) {
        if (mTheme != null) {
            return mTheme;
        }

        mThemeResource = Resources.selectDefaultTheme(mThemeResource,
                getOuterContext().getApplicationInfo().targetSdkVersion);
        initializeTheme();

        return mTheme;
    }
}
 
Example 16
Source File: ContextImpl.java    From AndroidComponentPlugin with Apache License 2.0 5 votes vote down vote up
@Override
public Resources.Theme getTheme() {
    if (mTheme != null) {
        return mTheme;
    }

    mThemeResource = Resources.selectDefaultTheme(mThemeResource,
            getOuterContext().getApplicationInfo().targetSdkVersion);
    initializeTheme();

    return mTheme;
}
 
Example 17
Source File: ContextImpl.java    From AndroidComponentPlugin with Apache License 2.0 5 votes vote down vote up
@Override
public Resources.Theme getTheme() {
    synchronized (mSync) {
        if (mTheme != null) {
            return mTheme;
        }

        mThemeResource = Resources.selectDefaultTheme(mThemeResource,
                getOuterContext().getApplicationInfo().targetSdkVersion);
        initializeTheme();

        return mTheme;
    }
}