OSDN Git Service

Fixed bug in handling of OTHER as terminal
authorJan Althaus <jalt@google.com>
Fri, 22 Sep 2017 17:55:17 +0000 (19:55 +0200)
committerJan Althaus <jalt@google.com>
Mon, 25 Sep 2017 07:56:21 +0000 (09:56 +0200)
This bug resulted in a tap on a non-default action mode item to get logged
as OTHER, followed by ABANDON.

Bug: 64914512
Test: Manually tested that logs are correct.
Change-Id: I3cdba7ccff896939e22c567843f335c54d4a97f3

core/java/android/view/textclassifier/logging/SmartSelectionEventTracker.java

index b6034d1..aa172f9 100644 (file)
@@ -582,6 +582,7 @@ public final class SmartSelectionEventTracker {
                 case ActionType.SMART_SHARE:  // fall through
                 case ActionType.DRAG:  // fall through
                 case ActionType.ABANDON:  // fall through
+                case ActionType.OTHER:  // fall through
                     return true;
                 default:
                     return false;