小米 6X MK100 Lawnchair 抽屉搜索时闪退

小米 6X MK100 Lawnchair 抽屉搜索时闪退
none 5.0 1

问题描述: Lawnchair抽屉搜索时闪退
当前版本: MK100.0-wayne-202002141728-NIGHTLY
复现步骤: 在应用抽屉顶部的搜索框中,输入任意内容,立马闪退,日志如下:

2020-02-19 09:15:18.830 24905-24905/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: ch.deletescape.lawnchair.ci, PID: 24905
java.lang.IndexOutOfBoundsException: Index: 4, Size: 4
at java.util.ArrayList.get(ArrayList.java:437)
at com.android.launcher3.allapps.AllAppsGridAdapter$AppsGridLayoutManager.getRowsNotForAccessibility(AllAppsGridAdapter.java:163)
at com.android.launcher3.allapps.AllAppsGridAdapter$AppsGridLayoutManager.onInitializeAccessibilityEvent(AllAppsGridAdapter.java:122)
at androidx.recyclerview.widget.RecyclerViewAccessibilityDelegate.onInitializeAccessibilityEvent(RecyclerViewAccessibilityDelegate.java:74)
at androidx.core.view.AccessibilityDelegateCompat$AccessibilityDelegateAdapter.onInitializeAccessibilityEvent(AccessibilityDelegateCompat.java:76)
at android.view.View.onInitializeAccessibilityEvent(View.java:8273)
at android.view.View.sendAccessibilityEventUncheckedInternal(View.java:8133)
at android.view.View$AccessibilityDelegate.sendAccessibilityEventUnchecked(View.java:29138)
at androidx.core.view.AccessibilityDelegateCompat.sendAccessibilityEventUnchecked(AccessibilityDelegateCompat.java:195)
at androidx.core.view.AccessibilityDelegateCompat$AccessibilityDelegateAdapter.sendAccessibilityEventUnchecked(AccessibilityDelegateCompat.java:112)
at android.view.View.sendAccessibilityEventUnchecked(View.java:8111)
at androidx.recyclerview.widget.RecyclerView.sendAccessibilityEventUnchecked(RecyclerView.java:3532)
at android.view.ViewRootImpl$SendWindowContentChangedAccessibilityEvent.run(ViewRootImpl.java:9064)
at android.view.ViewRootImpl$SendWindowContentChangedAccessibilityEvent.removeCallbacksAndRun(ViewRootImpl.java:9119)
at android.view.ViewRootImpl$SendWindowContentChangedAccessibilityEvent.runOrPost(ViewRootImpl.java:9111)
at android.view.ViewRootImpl.postSendWindowContentChangedCallback(ViewRootImpl.java:8114)
at android.view.ViewRootImpl.notifySubtreeAccessibilityStateChanged(ViewRootImpl.java:8294)
at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3749)
at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3749)
at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3749)
at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3749)
at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3749)
at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3749)
at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3749)
at android.view.View.notifySubtreeAccessibilityStateChangedIfNeeded(View.java:13403)
at android.view.ViewGroup.notifySubtreeAccessibilityStateChangedIfNeeded(ViewGroup.java:3773)
at android.view.ViewGroup.removeViewInternal(ViewGroup.java:5503)
at android.view.ViewGroup.removeViewAt(ViewGroup.java:5422)
at androidx.recyclerview.widget.RecyclerView$5.removeViewAt(RecyclerView.java:877)
at androidx.recyclerview.widget.ChildHelper.removeViewAt(ChildHelper.java:168)
at androidx.recyclerview.widget.RecyclerView$LayoutManager.removeViewAt(RecyclerView.java:8374)
at androidx.recyclerview.widget.RecyclerView$LayoutManager.removeAndRecycleViewAt(RecyclerView.java:8647)
at androidx.recyclerview.widget.RecyclerView$LayoutManager.removeAndRecycleAllViews(RecyclerView.java:10080)
at androidx.recyclerview.widget.RecyclerView.setLayoutManager(RecyclerView.java:1321)
at com.android.launcher3.allapps.AllAppsContainerView.replaceRVContainer(AllAppsContainerView.java:442)
at com.android.launcher3.allapps.AllAppsContainerView.rebindAdapters(AllAppsContainerView.java:412)
at com.android.launcher3.allapps.AllAppsContainerView.rebindAdapters(AllAppsContainerView.java:401)
at com.android.launcher3.allapps.AllAppsContainerView.setLastSearchQuery(AllAppsContainerView.java:537)
at com.google.android.apps.nexuslauncher.qsb.FallbackAppsSearchView.onSearchResult(FallbackAppsSearchView.java:62)
2020-02-19 09:15:18.830 24905-24905/? E/AndroidRuntime: at com.google.android.apps.nexuslauncher.search.SearchThread.handleMessage(SearchThread.java:97)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

发现只有当关闭 Lawnchair 的应用推荐后,才会复现此问题。

该主题在最后一个回复创建后30天后自动关闭。不再允许新的回复。