summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorFelipe Leme <felipeal@google.com>2018-03-20 18:17:34 -0700
committerFelipe Leme <felipeal@google.com>2018-03-22 13:30:59 -0700
commit4f74a018c8ee9801f1d5ce2c7ec726251efc4fbf (patch)
treee3afd283f6da07a87d49453215e2ab49c8d157ed /core/java/android
parentb630550ed19798ad89d8e10b750c72f899ad3e92 (diff)
Always set FLAG_SAVE_ON_ALL_VIEWS_INVISIBLE on SaveInfo when on compat mode.
Test: atest CtsAutoFillServiceTestCases:VirtualContainerActivityCompatModeTest Bug: 76027553 Change-Id: I432b4321801ca90a55a24e5e896578d5b2d63014
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/service/autofill/AutofillService.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/service/autofill/AutofillService.java b/core/java/android/service/autofill/AutofillService.java
index 41e41819526f..94cef6007597 100644
--- a/core/java/android/service/autofill/AutofillService.java
+++ b/core/java/android/service/autofill/AutofillService.java
@@ -527,6 +527,9 @@ import android.view.autofill.AutofillValue;
* <pre> &lt;autofill-service xmlns:android="http://schemas.android.com/apk/res/android"&gt;
* &lt;compatibility-package android:name="foo.bar.baz" android:maxLongVersionCode="1000000000"/&gt;
* &lt;/autofill-service&gt;</pre>
+ *
+ * <p>When using compatibility mode, the {@link SaveInfo.Builder#setFlags(int) SaveInfo flags}
+ * automatically include {@link SaveInfo#FLAG_SAVE_ON_ALL_VIEWS_INVISIBLE}.
*/
public abstract class AutofillService extends Service {
private static final String TAG = "AutofillService";