Prevent crash

pull/194/merge
M66B 3 years ago
parent 6be51423c1
commit b299f5e0c2

@ -195,7 +195,7 @@ public class FragmentOptions extends FragmentBase {
.setOnDismissListener(new DialogInterface.OnDismissListener() {
@Override
public void onDismiss(DialogInterface dialog) {
if (!prefs.getBoolean("setup_advanced", false))
if (pager != null && !prefs.getBoolean("setup_advanced", false))
pager.setCurrentItem(0);
}
})

Loading…
Cancel
Save