Search in sources :

Example 1 with WindowManagerWrapper

use of com.android.systemui.shared.system.WindowManagerWrapper in project android_packages_apps_Launcher3 by crdroidandroid.

the class TaskbarActivityContext method init.

public void init() {
    mWindowLayoutParams = new WindowManager.LayoutParams(MATCH_PARENT, mDeviceProfile.taskbarSize, TYPE_APPLICATION_OVERLAY, WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE, PixelFormat.TRANSLUCENT);
    mWindowLayoutParams.setTitle(WINDOW_TITLE);
    mWindowLayoutParams.packageName = getPackageName();
    mWindowLayoutParams.gravity = Gravity.BOTTOM;
    mWindowLayoutParams.setFitInsetsTypes(0);
    mWindowLayoutParams.softInputMode = WindowManager.LayoutParams.SOFT_INPUT_ADJUST_NOTHING;
    mWindowLayoutParams.layoutInDisplayCutoutMode = LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS;
    mWindowLayoutParams.setSystemApplicationOverlay(true);
    WindowManagerWrapper wmWrapper = WindowManagerWrapper.getInstance();
    wmWrapper.setProvidesInsetsTypes(mWindowLayoutParams, new int[] { ITYPE_EXTRA_NAVIGATION_BAR, ITYPE_BOTTOM_TAPPABLE_ELEMENT });
    mIconController.init(mOnTaskbarIconClickListener, mOnTaskbarIconLongClickListener);
    mWindowManager.addView(mDragLayer, mWindowLayoutParams);
}
Also used : WindowManagerWrapper(com.android.systemui.shared.system.WindowManagerWrapper) WindowManager(android.view.WindowManager)

Aggregations

WindowManager (android.view.WindowManager)1 WindowManagerWrapper (com.android.systemui.shared.system.WindowManagerWrapper)1