fix: NPE in ChannelFragment::onSaveInstanceState
This commit is contained in:
parent
c03c344f49
commit
193c3e5b3d
1 changed files with 3 additions and 1 deletions
|
@ -130,8 +130,10 @@ public class ChannelFragment extends BaseStateFragment<ChannelInfo>
|
||||||
@Override
|
@Override
|
||||||
public void onSaveInstanceState(final @NonNull Bundle outState) {
|
public void onSaveInstanceState(final @NonNull Bundle outState) {
|
||||||
super.onSaveInstanceState(outState);
|
super.onSaveInstanceState(outState);
|
||||||
|
if (binding != null) {
|
||||||
outState.putInt("LastTab", binding.tabLayout.getSelectedTabPosition());
|
outState.putInt("LastTab", binding.tabLayout.getSelectedTabPosition());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
|
|
Loading…
Reference in a new issue