Moved export/import to settings tab page

This commit is contained in:
M66B
2023-01-11 22:44:53 +01:00
parent 36317c32dc
commit 91baed2d69
6 changed files with 1637 additions and 1420 deletions

View File

@@ -78,7 +78,8 @@ public class FragmentOptions extends FragmentBase {
R.layout.fragment_options_privacy,
R.layout.fragment_options_encryption,
R.layout.fragment_options_notifications,
R.layout.fragment_options_misc
R.layout.fragment_options_misc,
R.layout.fragment_options_backup
};
static final int[] PAGE_TITLES = {
@@ -91,7 +92,8 @@ public class FragmentOptions extends FragmentBase {
R.string.title_advanced_section_privacy,
R.string.title_advanced_section_encryption,
R.string.title_advanced_section_notifications,
R.string.title_advanced_section_misc
R.string.title_advanced_section_misc,
R.string.title_advanced_section_backup
};
static final int[] PAGE_ICONS = {
@@ -104,7 +106,8 @@ public class FragmentOptions extends FragmentBase {
R.drawable.twotone_account_circle_24,
R.drawable.twotone_lock_24,
R.drawable.twotone_notifications_24,
R.drawable.twotone_more_24
R.drawable.twotone_more_24,
R.drawable.twotone_save_alt_24
};
static final List<String> TAB_LABELS = Collections.unmodifiableList(Arrays.asList(
@@ -117,7 +120,8 @@ public class FragmentOptions extends FragmentBase {
"privacy",
"encryption",
"notifications",
"misc"
"misc",
"backup"
));
static String[] OPTIONS_RESTART = new String[]{
@@ -506,6 +510,8 @@ public class FragmentOptions extends FragmentBase {
return new FragmentOptionsNotifications();
case 9:
return new FragmentOptionsMisc();
case 10:
return new FragmentOptionsBackup();
default:
throw new IllegalArgumentException();
}