mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
lock on app restart
This commit is contained in:
parent
c27e44a7d2
commit
8211f85725
4 changed files with 26 additions and 0 deletions
|
@ -39,6 +39,7 @@ namespace Bit.App.Pages
|
|||
new KeyValuePair<string, int?>(AppResources.LockOption30Minutes, 30),
|
||||
new KeyValuePair<string, int?>(AppResources.LockOption1Hour, 60),
|
||||
new KeyValuePair<string, int?>(AppResources.LockOption4Hours, 240),
|
||||
new KeyValuePair<string, int?>(AppResources.LockOptionOnRestart, -1),
|
||||
new KeyValuePair<string, int?>(AppResources.Never, null),
|
||||
};
|
||||
|
||||
|
|
18
src/App/Resources/AppResources.Designer.cs
generated
18
src/App/Resources/AppResources.Designer.cs
generated
|
@ -2256,6 +2256,24 @@ namespace Bit.App.Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to On Device Lock.
|
||||
/// </summary>
|
||||
public static string LockOptionOnDeviceLock {
|
||||
get {
|
||||
return ResourceManager.GetString("LockOptionOnDeviceLock", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to On App Restart.
|
||||
/// </summary>
|
||||
public static string LockOptionOnRestart {
|
||||
get {
|
||||
return ResourceManager.GetString("LockOptionOnRestart", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Lock Options.
|
||||
/// </summary>
|
||||
|
|
|
@ -1592,4 +1592,10 @@
|
|||
<data name="DisableSavePromptDescription" xml:space="preserve">
|
||||
<value>The "Save Prompt" automatically prompts you to save new items to your vault whenever you enter them for the first time.</value>
|
||||
</data>
|
||||
<data name="LockOptionOnDeviceLock" xml:space="preserve">
|
||||
<value>On Device Lock</value>
|
||||
</data>
|
||||
<data name="LockOptionOnRestart" xml:space="preserve">
|
||||
<value>On App Restart</value>
|
||||
</data>
|
||||
</root>
|
|
@ -121,6 +121,7 @@ namespace Bit.App.Utilities
|
|||
if(lastBuild == null)
|
||||
{
|
||||
// Installed
|
||||
await storageService.SaveAsync(Constants.LockOptionKey, -1);
|
||||
}
|
||||
else if(lastBuild != currentBuild)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue