我选择/单击EditText字段后,我的应用程序崩溃了。没什么特别的,它是没有任何样式或内容的简单EditText。日志说此崩溃发生在AutofillManager.java中。根据这些信息,我想这是editText的autoFill引起的android 10问题。但是为什么呢?
Logcat:
at com.android.internal.util.SyncResultReceiver.waitResult(SyncResultReceiver.java:60)
at com.android.internal.util.SyncResultReceiver.getIntResult(SyncResultReceiver.java:68)
at android.view.autofill.AutofillManager.ensureServiceClientAddedIfNeededLocked(AutofillManager.java:1847)
at android.view.autofill.AutofillManager.notifyViewEnteredLocked(AutofillManager.java:966)
at android.view.autofill.AutofillManager.notifyViewEntered(AutofillManager.java:950)
at android.view.autofill.AutofillManager.notifyViewEntered(AutofillManager.java:901)
at android.view.View.notifyEnterOrExitForAutoFillIfNeeded(View.java:7897)
at android.view.View.onFocusChanged(View.java:7859)
at android.widget.TextView.onFocusChanged(TextView.java:10852)
at android.view.View.handleFocusGainInternal(View.java:7522)
at android.view.View.requestFocusNoSearch(View.java:12498)
at android.view.View.requestFocus(View.java:12472)
at android.view.View.requestFocus(View.java:12439)
at android.view.View.requestFocus(View.java:12381)
at android.view.View.onTouchEvent(View.java:14899)
at android.widget.TextView.onTouchEvent(TextView.java:10911)
at android.view.View.dispatchTouchEvent(View.java:13490)
无论如何,如果禁用自动填充功能,都会为崩溃提供临时解决方案。
android:importantForAutofill =“ noExcludeDescendants”