Export is not advanced

This commit is contained in:
M66B 2023-09-10 08:23:55 +02:00
parent 644f203b82
commit a16bb54c4a
1 changed files with 2 additions and 1 deletions

View File

@ -194,7 +194,8 @@ public class FragmentOptions extends FragmentBase {
@Override
public void onPageSelected(int position) {
if (position > 0) {
if (position > 0 && position < PAGE_TITLES.length &&
PAGE_TITLES[position] != R.string.title_advanced_section_backup) {
final Context context = getContext();
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean setup_advanced = prefs.getBoolean("setup_advanced", false);