OSDN Git Service

Fixed when ContentCapture is finished.
authorFelipe Leme <felipeal@google.com>
Fri, 22 Feb 2019 18:17:26 +0000 (10:17 -0800)
committerFelipe Leme <felipeal@google.com>
Fri, 22 Feb 2019 19:15:03 +0000 (11:15 -0800)
The initial behavior cop^H^H^H based on Autofill, which only closes the session when the activity
finishes. But for content capture we must always close the session when the activity is stopped.

Test: manual verification
Fixes: 125628737

Change-Id: I064d4ace97721dd8fb20075c02e1f059ecbf942a

core/java/android/app/Activity.java

index a63350c..91fc188 100644 (file)
@@ -2387,8 +2387,8 @@ public class Activity extends ContextThemeWrapper
                 getAutofillManager().onPendingSaveUi(AutofillManager.PENDING_UI_OPERATION_CANCEL,
                         mIntent.getIBinderExtra(AutofillManager.EXTRA_RESTORE_SESSION_TOKEN));
             }
-            notifyContentCaptureManagerIfNeeded(CONTENT_CAPTURE_STOP);
         }
+        notifyContentCaptureManagerIfNeeded(CONTENT_CAPTURE_STOP);
         mEnterAnimationComplete = false;
     }