diff options
author | Matthew Ng <ngmatthew@google.com> | 2018-08-21 16:31:13 -0700 |
---|---|---|
committer | Matthew Ng <ngmatthew@google.com> | 2018-08-22 15:13:09 -0700 |
commit | c83b989c46beecc9eaca13c5c9c6a8beded386a5 (patch) | |
tree | d320444a8a49ea1a39dbce6b92241c40f2987609 /packages/SystemUI/src/com/android/systemui/OverviewProxyService.java | |
parent | b3d3dd2173cb0d292f3daffd6755705e39890c6c (diff) |
Added experiment for back gesture dragging home button
Dragging the opposite direction of quickscrub will execute the back
functionality as if you pressed the button. If you hold the home button
while in gesture, every second it will execute back command. Both adb
commands below are default to false so they must be enabled first.
Enable the setprop value for enabling this functionality.
adb shell setprop persist.quickstepcontroller.homegoesback true
Fully remove the back (and ime up) arrow button. Dependent of above.
adb shell setprop persist.quickstepcontroller.hideback true
Then go home or start the ime/keyboard to see changes.
Test: manual
Bug: 112934365
Change-Id: I68b7f0415107fc134d51fafbd55bc641d4312815
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/OverviewProxyService.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/OverviewProxyService.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java index 0864ff03a9db..cdd74f21845b 100644 --- a/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java +++ b/packages/SystemUI/src/com/android/systemui/OverviewProxyService.java @@ -88,6 +88,7 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis private @InteractionType int mInteractionFlags; private boolean mIsEnabled; private int mCurrentBoundedUserId = -1; + private float mBackButtonAlpha; private ISystemUiProxy mSysUiProxy = new ISystemUiProxy.Stub() { @@ -193,6 +194,7 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis } long token = Binder.clearCallingIdentity(); try { + mBackButtonAlpha = alpha; mHandler.post(() -> { notifyBackButtonAlphaChanged(alpha, animate); }); @@ -322,6 +324,10 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis } } + public float getBackButtonAlpha() { + return mBackButtonAlpha; + } + public void startConnectionToCurrentUser() { if (mHandler.getLooper() != Looper.myLooper()) { mHandler.post(mConnectionRunnable); |