Skip to content

Commit 4646e20

Browse files
ymarianleticiarossi
authored andcommitted
Fix BottomNavigationView SavedState bug for null loader
Resolves #549 PiperOrigin-RevId: 278416562 (cherry picked from commit 56fbbe9)
1 parent d8868df commit 4646e20

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/java/com/google/android/material/bottomnavigation/BottomNavigationView.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,9 @@ public SavedState(Parcelable superState) {
757757

758758
public SavedState(@NonNull Parcel source, ClassLoader loader) {
759759
super(source, loader);
760+
if (loader == null) {
761+
loader = getClass().getClassLoader();
762+
}
760763
readFromParcel(source, loader);
761764
}
762765

0 commit comments

Comments
 (0)