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

Commit b60ebb7d authored by Andrew Sapperstein's avatar Andrew Sapperstein
Browse files

Use SystemUiContext for immersive mode cling.

Was using teal since the context was not one that should be used
to display UI.

Change-Id: I870c038ab8929af521c8a78b7eac63a400643de0
Fixes: 63151531
Test: manual
parent 857b0ff5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.server.policy;
import android.animation.ArgbEvaluator;
import android.animation.ValueAnimator;
import android.app.ActivityManager;
import android.app.ActivityThread;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
@@ -79,7 +80,7 @@ public class ImmersiveModeConfirmation {
    boolean mVrModeEnabled = false;

    public ImmersiveModeConfirmation(Context context) {
        mContext = context;
        mContext = ActivityThread.currentActivityThread().getSystemUiContext();
        mHandler = new H();
        mShowDelayMs = getNavBarExitDuration() * 3;
        mPanicThresholdMs = context.getResources()