Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3e968bb authored by Riley Jones's avatar Riley Jones Committed by Android (Google) Code Review
Browse files

Merge "Fixing the StrictMode errors in A11yMenu" into udc-dev

parents 38961ed5 b8975e6a
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.systemui.accessibility.accessibilitymenu.view;

import static android.view.Display.DEFAULT_DISPLAY;

import static java.lang.Math.max;

import android.animation.Animator;
@@ -133,7 +135,12 @@ public class A11yMenuOverlayLayout {
            initLayoutParams();
        }

        mLayout = new FrameLayout(mService);
        final Display display = mService.getSystemService(
                DisplayManager.class).getDisplay(DEFAULT_DISPLAY);

        mLayout = new FrameLayout(
                mService.createDisplayContext(display).createWindowContext(
                        WindowManager.LayoutParams.TYPE_ACCESSIBILITY_OVERLAY, null));
        updateLayoutPosition();
        inflateLayoutAndSetOnTouchListener(mLayout);
        mA11yMenuViewPager = new A11yMenuViewPager(mService);