mirror of
https://github.com/moparisthebest/keepass2android
synced 2024-11-22 09:12:17 -05:00
Added usage counter (maybe to be used later to ask people to rate the app)
This commit is contained in:
parent
5204292587
commit
1d05641e2a
@ -85,6 +85,13 @@ namespace keepass2android
|
||||
protected override void OnCreate(Bundle savedInstanceState)
|
||||
{
|
||||
ISharedPreferences prefs = PreferenceManager.GetDefaultSharedPreferences(this);
|
||||
|
||||
long usageCount = prefs.GetLong(GetString(Resource.String.UsageCount_key), 0);
|
||||
|
||||
ISharedPreferencesEditor edit = prefs.Edit();
|
||||
edit.PutLong(GetString(Resource.String.UsageCount_key), usageCount+1);
|
||||
EditorCompat.apply(edit);
|
||||
|
||||
mShowPassword = ! prefs.GetBoolean(GetString(Resource.String.maskpass_key), Resources.GetBoolean(Resource.Boolean.maskpass_default));
|
||||
|
||||
base.OnCreate(savedInstanceState);
|
||||
|
791
src/keepass2android/Resources/Resource.designer.cs
generated
791
src/keepass2android/Resources/Resource.designer.cs
generated
File diff suppressed because it is too large
Load Diff
@ -53,6 +53,8 @@
|
||||
<string name="QuickUnlockLength_key">QuickUnlockLength</string>
|
||||
<string name="QuickUnlockLength_default">3</string>
|
||||
|
||||
<string name="UsageCount_key"></string>
|
||||
|
||||
<string name="UseFileTransactions_key">UseFileTransactions</string>
|
||||
|
||||
<string name="clipboard_timeout_default">300000</string>
|
||||
|
Loading…
Reference in New Issue
Block a user