Merge "Use SystemUiContext for immersive mode cling." into oc-dr1-dev

am: 2cbe6aa96b

Change-Id: Ida3b992b69beceff700e67ceea075663720c6904
This commit is contained in:
Andrew Sapperstein
2017-07-05 17:03:38 +00:00
committed by android-build-merger

View File

@@ -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()