Search in sources :

Example 11 with WindowManagerImpl

use of android.view.WindowManagerImpl in project android_frameworks_base by DirtyUnicorns.

the class DecorContext method getSystemService.

@Override
public Object getSystemService(String name) {
    if (Context.WINDOW_SERVICE.equals(name)) {
        if (mWindowManager == null) {
            WindowManagerImpl wm = (WindowManagerImpl) super.getSystemService(Context.WINDOW_SERVICE);
            mWindowManager = wm.createLocalWindowManager(mPhoneWindow);
        }
        return mWindowManager;
    }
    return super.getSystemService(name);
}
Also used : WindowManagerImpl(android.view.WindowManagerImpl)

Aggregations

WindowManagerImpl (android.view.WindowManagerImpl)11 Context (android.content.Context)6 TypedValue (android.util.TypedValue)6 ContextThemeWrapper (android.view.ContextThemeWrapper)6