allow to hide the length of the QuickUnlock code. Closes #52
This commit is contained in:
@@ -107,7 +107,16 @@ namespace keepass2android
|
||||
|
||||
_quickUnlockLength = App.Kp2a.QuickUnlockKeyLength;
|
||||
|
||||
txtLabel.Text = GetString(Resource.String.QuickUnlock_label, new Java.Lang.Object[] {_quickUnlockLength});
|
||||
if (PreferenceManager.GetDefaultSharedPreferences(this)
|
||||
.GetBoolean(GetString(Resource.String.QuickUnlockHideLength_key), false))
|
||||
{
|
||||
txtLabel.Text = GetString(Resource.String.QuickUnlock_label_secure);
|
||||
}
|
||||
else
|
||||
{
|
||||
txtLabel.Text = GetString(Resource.String.QuickUnlock_label, new Java.Lang.Object[] { _quickUnlockLength });
|
||||
}
|
||||
|
||||
|
||||
EditText pwd = (EditText) FindViewById(Resource.Id.QuickUnlock_password);
|
||||
pwd.SetEms(_quickUnlockLength);
|
||||
|
||||
@@ -97,6 +97,7 @@
|
||||
<string name="FileHandling_prefs_key">FileHandling_prefs_key</string>
|
||||
<string name="keyboardswitch_prefs_key">keyboardswitch_prefs_key</string>
|
||||
<string name="AutoFill_prefs_key">AutoFill_prefs_key</string>
|
||||
<string name="QuickUnlockHideLength_key">QuickUnlockHideLength_key</string>
|
||||
|
||||
|
||||
<string name="OfflineMode_key">OfflineMode_key</string>
|
||||
|
||||
@@ -290,6 +290,7 @@
|
||||
<string name="enter_filename_details_create_import">File to import will be selected in the next step.</string>
|
||||
<string name="enable_quickunlock">Enable QuickUnlock</string>
|
||||
<string name="QuickUnlock_label">Enter last %1$d characters of your password:</string>
|
||||
<string name="QuickUnlock_label_secure">Enter QuickUnlock code:</string>
|
||||
<string name="QuickUnlock_button">QuickUnlock!</string>
|
||||
<string name="QuickUnlock_lockButton">Close database</string>
|
||||
<string name="QuickUnlockDefaultEnabled_title">Enable QuickUnlock by default</string>
|
||||
@@ -302,6 +303,9 @@
|
||||
<string name="QuickUnlockIconHidden16_summary">QuickUnlock requires a notification to work properly. Select this option to display a notification without an icon.</string>
|
||||
<string name="QuickUnlockLength_title">Length of QuickUnlock key</string>
|
||||
<string name="QuickUnlockLength_summary">Maximum number of characters used as QuickUnlock password.</string>
|
||||
<string name="QuickUnlockHideLength_title">Hide QuickUnlock length</string>
|
||||
<string name="QuickUnlockHideLength_summary">If enabled, the length of the QuickUnlock code is not displayed on the QuickUnlock screen.</string>
|
||||
|
||||
<string name="QuickUnlock_fail">QuickUnlock failed: incorrect password!</string>
|
||||
<string name="BinaryDirectory_title">File attachments directory</string>
|
||||
<string name="BinaryDirectory_summary">Directory where file attachments are saved to.</string>
|
||||
|
||||
@@ -423,6 +423,14 @@
|
||||
android:defaultValue="true"
|
||||
android:title="@string/QuickUnlockIconHidden16_title"
|
||||
android:key="@string/QuickUnlockIconHidden16_key" />
|
||||
<CheckBoxPreference
|
||||
android:enabled="true"
|
||||
android:persistent="true"
|
||||
android:summary="@string/QuickUnlockHideLength_summary"
|
||||
android:defaultValue="false"
|
||||
android:title="@string/QuickUnlockHideLength_title"
|
||||
android:key="@string/QuickUnlockHideLength_key" />
|
||||
|
||||
</PreferenceScreen>
|
||||
<PreferenceScreen
|
||||
android:key="@string/FileHandling_prefs_key"
|
||||
|
||||
Reference in New Issue
Block a user