1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 10:17:18 +00:00

Prevent crash

This commit is contained in:
M66B 2021-12-31 17:02:43 +01:00
parent 6be51423c1
commit b299f5e0c2

View file

@ -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);
}
})