diff options
| author | 2016-03-10 19:25:26 +0000 | |
|---|---|---|
| committer | 2016-03-10 19:25:27 +0000 | |
| commit | 23f3745e1cf1cb15cef1aeff10b471582d3f12e9 (patch) | |
| tree | 0bab52b9ee05822842c71b5810e89e6a4b12c9a6 | |
| parent | 689a7cf7862fe9745a93fd9d4615d6265fd6b031 (diff) | |
| parent | 6069c4099e21765af3508a2f7de4dad779dc0543 (diff) | |
Merge "Adding a setting to force user activity." into nyc-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowManager.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowManager.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowManager.java index fcaf050549f2..77ece9322583 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowManager.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowManager.java @@ -173,7 +173,7 @@ public class StatusBarWindowManager implements RemoteInputController.Callback { private void applyInputFeatures(State state) { if (state.isKeyguardShowingAndNotOccluded() && state.statusBarState == StatusBarState.KEYGUARD - && !state.qsExpanded) { + && !state.qsExpanded && !state.forceUserActivity) { mLpChanged.inputFeatures |= WindowManager.LayoutParams.INPUT_FEATURE_DISABLE_USER_ACTIVITY; } else { @@ -265,6 +265,11 @@ public class StatusBarWindowManager implements RemoteInputController.Callback { apply(mCurrentState); } + public void setForceUserActivity(boolean forceUserActivity) { + mCurrentState.forceUserActivity = forceUserActivity; + apply(mCurrentState); + } + public void setHeadsUpShowing(boolean showing) { mCurrentState.headsUpShowing = showing; apply(mCurrentState); @@ -332,6 +337,7 @@ public class StatusBarWindowManager implements RemoteInputController.Callback { boolean forceStatusBarVisible; boolean forceCollapsed; boolean forceDozeBrightness; + boolean forceUserActivity; /** * The {@link BaseStatusBar} state from the status bar. |