Add encryption popup on first launch
This commit is contained in:
parent
84b21641a0
commit
de3fd5ba73
@ -225,11 +225,6 @@ public class MainActivity extends BaseActivity {
|
||||
}
|
||||
});
|
||||
|
||||
if(SettingsUtil.isFirstLaunch(this) && SettingsUtil.getGroups(this).isEmpty()) {
|
||||
SettingsUtil.addGroup(this, UUID.randomUUID().toString(), "My Codes");
|
||||
SettingsUtil.setFirstLaunch(this, false);
|
||||
}
|
||||
|
||||
OTPDatabase.promptLoadDatabase(this, this::launchApp, this::finishAffinity);
|
||||
}
|
||||
|
||||
@ -258,6 +253,12 @@ public class MainActivity extends BaseActivity {
|
||||
}else {
|
||||
NavigationUtil.navigate(this, HomeFragment.class, null);
|
||||
}
|
||||
|
||||
if(SettingsUtil.isFirstLaunch(this) && SettingsUtil.getGroups(this).isEmpty()) {
|
||||
SettingsUtil.addGroup(this, UUID.randomUUID().toString(), "My Codes");
|
||||
DialogUtil.showYesNo(this, R.string.enable_encryption_title, R.string.enable_encryption_message, () -> NavigationUtil.navigate(this, SettingsFragment.class, null), null);
|
||||
SettingsUtil.setFirstLaunch(this, false);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -127,6 +127,8 @@
|
||||
<string name="broken_icon_packs_title">Broken icon packs</string>
|
||||
<string name="broken_icon_packs_message">Some icon packs failed to load.\n\nDo you want to delete the broken icon packs?</string>
|
||||
<string name="icon_pack_imported">Icon pack with %d icon(s) imported</string>
|
||||
<string name="enable_encryption_message">It is recommended enable encryption to improve the security of the application.\n\nDo you want to go to the settings now to enable encryption?</string>
|
||||
<string name="enable_encryption_title">Enable encryption</string>
|
||||
<string-array name="error_icon_pack_exists_choices">
|
||||
<item>Override</item>
|
||||
<item>Rename existing</item>
|
||||
|
Loading…
Reference in New Issue
Block a user