Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05179b9b authored by helencheuk's avatar helencheuk
Browse files

[Contextual Edu] Show dialog after back gesture completed

Show dialog after back swipe gesture is completed to avoid interrupting the gesture

Bug: 369991056
Test: Manual, open an app and perform back swipe twice. The back gesture is successful with dialog displayed
Flag: com.android.systemui.keyboard_touchpad_contextual_education
Change-Id: I18e2e079484e41b0dcde886b1f164473596d4ac6
parent ada6afab
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -326,6 +326,11 @@ public class EdgeBackGestureHandler implements PluginListener<NavigationEdgeBack
                    logGesture(mInRejectedExclusion
                            ? SysUiStatsLog.BACK_GESTURE__TYPE__COMPLETED_REJECTED
                            : SysUiStatsLog.BACK_GESTURE__TYPE__COMPLETED);
                    if (!mInRejectedExclusion) {
                        // Log successful back gesture to contextual edu stats
                        mOverviewProxyService.updateContextualEduStats(mIsTrackpadThreeFingerSwipe,
                                GestureType.BACK);
                    }
                }

                @Override
@@ -1153,8 +1158,6 @@ public class EdgeBackGestureHandler implements PluginListener<NavigationEdgeBack
                        if (mAllowGesture) {
                            if (mBackAnimation != null) {
                                mBackAnimation.onThresholdCrossed();
                                mOverviewProxyService.updateContextualEduStats(
                                        mIsTrackpadThreeFingerSwipe, GestureType.BACK);
                            } else {
                                pilferPointers();
                            }