Search in sources :

Example 6 with CustomTheme

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();
}
Also used : CustomTheme(android.content.res.CustomTheme)

Aggregations

CustomTheme (android.content.res.CustomTheme)6 Context (android.content.Context)2 TextView (android.widget.TextView)2 LayoutTransition (android.animation.LayoutTransition)1 ActivityManager (android.app.ActivityManager)1 IntentFilter (android.content.IntentFilter)1 Configuration (android.content.res.Configuration)1 Resources (android.content.res.Resources)1 Point (android.graphics.Point)1 RemoteException (android.os.RemoteException)1 MotionEvent (android.view.MotionEvent)1 View (android.view.View)1 OnClickListener (android.view.View.OnClickListener)1 OnLongClickListener (android.view.View.OnLongClickListener)1 ViewGroup (android.view.ViewGroup)1 LayoutParams (android.view.ViewGroup.LayoutParams)1 MarginLayoutParams (android.view.ViewGroup.MarginLayoutParams)1 ImageView (android.widget.ImageView)1 RelativeLayout (android.widget.RelativeLayout)1 ScrollView (android.widget.ScrollView)1