Code example for ContextThemeWrapper

0
    ContextThemeWrapper mWrapper;
    @Override 
    public Context getContext() {
        if (mWrapper != null)
            return mWrapper;
        mWrapper = new ContextThemeWrapper(super.getContext(), R.style.SuperuserDark_LargeIcon);
        return mWrapper;
    } 
 
    protected class FragmentInternal extends PolicyFragmentInternal { 
        public FragmentInternal(FragmentInterfaceWrapper fragment) {
            super(fragment);
        } 
 
        @Override 
        public Context getContext() {
            return PolicyNativeFragment.this.getContext();
        } 
         
        @Override 
        protected int getListFragmentResource() {