Search in sources :

Example 1 with AppCompatDelegate

use of androidx.appcompat.app.AppCompatDelegate in project EhViewer by seven332.

the class AppCompatPreferenceActivity method onCreate.

@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    final AppCompatDelegate delegate = getDelegate();
    delegate.installViewFactory();
    delegate.onCreate(savedInstanceState);
    if (delegate.applyDayNight() && mThemeId != 0) {
        // current theme ID.
        if (Build.VERSION.SDK_INT >= 23) {
            onApplyThemeResource(getTheme(), mThemeId, false);
        } else {
            setTheme(mThemeId);
        }
    }
    super.onCreate(savedInstanceState);
}
Also used : AppCompatDelegate(androidx.appcompat.app.AppCompatDelegate)

Aggregations

AppCompatDelegate (androidx.appcompat.app.AppCompatDelegate)1