Fix stalled gesture navigation tutorial.
Touching the screen after completing the gesture removed all callbacks, preventing the tutorial to progess. Added logic to only remove logic if the gesture is incomplete. Fixes: 198285152 Test: manual, touched screen and attempted all gestures after completing a step Change-Id: I320b13cd9b7632a9fb722bc10d3d0a96dc111144
This commit is contained in:
1 parent
6173a7302b
commit
b2339e37d7
6 files changed
+14
-10
No files matched your search
@@ -48,7 +48,7 @@ final class HomeGestureTutorialController extends SwipeUpGestureTutorialControll
|
||||
|
||||
@Override
|
||||
public void onBackGestureAttempted(BackGestureResult result) {
|
||||
if (mGestureCompleted) {
|
||||
if (isGestureCompleted()) {
|
||||
return;
|
||||
}
|
||||
switch (mTutorialType) {
|
||||
@@ -73,7 +73,7 @@ final class HomeGestureTutorialController extends SwipeUpGestureTutorialControll
|
||||
|
||||
@Override
|
||||
public void onNavBarGestureAttempted(NavBarGestureResult result, PointF finalVelocity) {
|
||||
if (mGestureCompleted) {
|
||||
if (isGestureCompleted()) {
|
||||
return;
|
||||
}
|
||||
switch (mTutorialType) {
|
||||
|
||||
Reference in new issue
Block a user