You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a back press is called, the RecyclerView inside content_main scrolls up after calling recyclerView.smoothScrollToPosition(0) then we also call appBarLayout.setExpanded(true, true). It works for a while but after repeatedly triggering both method and clicking some action menu or navigation icon while the list is scrolling the error below kicks in.
JNI DETECTED ERROR IN APPLICATION: can't call void com.google.android.material.appbar.AppBarLayout.setElevation(float) on null object
Minimal sample app repro: N/A
Android API version: 21
Material Library version: 1.10.0
Device: Pixel (emulator)
The text was updated successfully, but these errors were encountered:
ArcherEmiya05
changed the title
AppBarLayout - Crashing when setExpand animation is true
AppBarLayout - Crashing when setExpand animate is true
Nov 19, 2023
Description:
Crashing after repeated call of
appBarLayout.setExpanded(true, true)
Expected behavior:
Not crashing
Source code:
When a back press is called, the RecyclerView inside
content_main
scrolls up after callingrecyclerView.smoothScrollToPosition(0)
then we also callappBarLayout.setExpanded(true, true)
. It works for a while but after repeatedly triggering both method and clicking some action menu or navigation icon while the list is scrolling the error below kicks in.JNI DETECTED ERROR IN APPLICATION: can't call void com.google.android.material.appbar.AppBarLayout.setElevation(float) on null object
Minimal sample app repro: N/A
Android API version: 21
Material Library version: 1.10.0
Device: Pixel (emulator)
The text was updated successfully, but these errors were encountered: