mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 00:20:32 +00:00
fix: NPE in ChannelFragment::onSaveInstanceState
This commit is contained in:
parent
c03c344f49
commit
193c3e5b3d
@ -130,7 +130,9 @@ 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);
|
||||||
outState.putInt("LastTab", binding.tabLayout.getSelectedTabPosition());
|
if (binding != null) {
|
||||||
|
outState.putInt("LastTab", binding.tabLayout.getSelectedTabPosition());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user