mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
am 2d0bc6c8: am 86745db1: am ee460c94: am 024b3639: Fix NPE on orientation change
* commit '2d0bc6c8d611f00570b4794168ba235568171df2': Fix NPE on orientation change GitOrigin-RevId=2c07630da76833f8b62b8a4307b60004349845a1 PiperOrigin-RevId: 140548884
This commit is contained in:
parent
f9009de091
commit
5872f58c8f
@ -463,7 +463,9 @@ public class NavigationMenuPresenter implements MenuPresenter, AdapterView.OnIte
|
||||
|
||||
public Bundle createInstanceState() {
|
||||
Bundle state = new Bundle();
|
||||
state.putInt(STATE_CHECKED_ITEM, mCheckedItem.getItemId());
|
||||
if (mCheckedItem != null) {
|
||||
state.putInt(STATE_CHECKED_ITEM, mCheckedItem.getItemId());
|
||||
}
|
||||
return state;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user