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
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user