mirror of
https://github.com/moparisthebest/keepass2android
synced 2025-02-07 02:10:10 -05:00
add some logging for QuickUnlock issue detection
This commit is contained in:
parent
7378e19f99
commit
a5bb280163
@ -1710,6 +1710,8 @@ namespace keepass2android
|
|||||||
base.OnResume();
|
base.OnResume();
|
||||||
_activityDesign.ReapplyTheme();
|
_activityDesign.ReapplyTheme();
|
||||||
|
|
||||||
|
Kp2aLog.Log("starting: " + _starting + ", Finishing: " + IsFinishing + ", _performingLoad: " + _performingLoad);
|
||||||
|
|
||||||
CheckBox cbOfflineMode = (CheckBox)FindViewById(Resource.Id.work_offline);
|
CheckBox cbOfflineMode = (CheckBox)FindViewById(Resource.Id.work_offline);
|
||||||
App.Kp2a.OfflineMode = cbOfflineMode.Checked = App.Kp2a.OfflineModePreference; //this won't overwrite new user settings because every change is directly saved in settings
|
App.Kp2a.OfflineMode = cbOfflineMode.Checked = App.Kp2a.OfflineModePreference; //this won't overwrite new user settings because every change is directly saved in settings
|
||||||
LinearLayout offlineModeContainer = FindViewById<LinearLayout>(Resource.Id.work_offline_container);
|
LinearLayout offlineModeContainer = FindViewById<LinearLayout>(Resource.Id.work_offline_container);
|
||||||
|
@ -302,10 +302,12 @@ namespace keepass2android
|
|||||||
var expectedPasswordPart = ExpectedPasswordPart;
|
var expectedPasswordPart = ExpectedPasswordPart;
|
||||||
if (pwd.Text == expectedPasswordPart)
|
if (pwd.Text == expectedPasswordPart)
|
||||||
{
|
{
|
||||||
|
Kp2aLog.Log("QuickUnlock successful!");
|
||||||
App.Kp2a.UnlockDatabase();
|
App.Kp2a.UnlockDatabase();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Kp2aLog.Log("QuickUnlock not successful!");
|
||||||
App.Kp2a.LockDatabase(false);
|
App.Kp2a.LockDatabase(false);
|
||||||
Toast.MakeText(this, GetString(Resource.String.QuickUnlock_fail), ToastLength.Long).Show();
|
Toast.MakeText(this, GetString(Resource.String.QuickUnlock_fail), ToastLength.Long).Show();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user