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

Commit 7f96bd5a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix leakage of pointer location" into tm-qpr-dev

parents 4d334f45 5a478576
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -828,6 +828,8 @@ public class PointerLocationView extends View implements InputDeviceListener,
                    mSystemGestureExclusionListener, mContext.getDisplayId());
        } catch (RemoteException e) {
            throw e.rethrowFromSystemServer();
        } catch (IllegalArgumentException e) {
            Log.e(TAG, "Failed to unregister window manager callbacks", e);
        }
    }

+7 −1
Original line number Diff line number Diff line
@@ -2933,7 +2933,10 @@ public class DisplayPolicy {
            return;
        }

        if (!mDisplayContent.isRemoved()) {
            mDisplayContent.unregisterPointerEventListener(mPointerLocationView);
        }

        final WindowManager wm = mContext.getSystemService(WindowManager.class);
        wm.removeView(mPointerLocationView);
        mPointerLocationView = null;
@@ -2958,6 +2961,9 @@ public class DisplayPolicy {
        mHandler.post(mGestureNavigationSettingsObserver::unregister);
        mHandler.post(mForceShowNavBarSettingsObserver::unregister);
        mImmersiveModeConfirmation.release();
        if (mService.mPointerLocationEnabled) {
            setPointerLocationEnabled(false);
        }
    }

    @VisibleForTesting