use of android.content.res.CustomTheme in project android_frameworks_base by ParanoidAndroid.
the class TabletStatusBar method onConfigurationChanged.
@Override
protected void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
// detect theme change.
CustomTheme newTheme = mContext.getResources().getConfiguration().customTheme;
if (newTheme != null && (mCurrentTheme == null || !mCurrentTheme.equals(newTheme))) {
mCurrentTheme = (CustomTheme) newTheme.clone();
recreateStatusBar();
}
loadDimens();
mNotificationPanelParams.height = getNotificationPanelHeight();
mWindowManager.updateViewLayout(mNotificationPanel, mNotificationPanelParams);
mShowSearchHoldoff = mContext.getResources().getInteger(R.integer.config_show_search_delay);
updateSearchPanel();
}
Aggregations