mirror of
https://github.com/moparisthebest/keepass2android
synced 2024-11-15 22:15:14 -05:00
Changed/Added logging
This commit is contained in:
parent
d35218da39
commit
64e62cae70
@ -76,6 +76,7 @@ namespace keepass2android
|
||||
}
|
||||
set
|
||||
{
|
||||
Kp2aLog.Log("Locked=" + _locked);
|
||||
_locked = value;
|
||||
}
|
||||
}
|
||||
|
@ -47,11 +47,11 @@ namespace keepass2android
|
||||
SaveFileData (_ioc, _key);
|
||||
|
||||
} catch (KeyFileException) {
|
||||
Android.Util.Log.Debug("KP2ATest", "KeyFileException");
|
||||
Kp2aLog.Log("KeyFileException");
|
||||
Finish(false, /*TODO Localize: use Keepass error text KPRes.KeyFileError (including "or invalid format")*/ _app.GetResourceString(UiStringKey.keyfile_does_not_exist));
|
||||
}
|
||||
catch (Exception e) {
|
||||
Android.Util.Log.Debug("KP2ATest", "Exception: "+e.Message);
|
||||
Kp2aLog.Log("Exception: " + e.Message);
|
||||
Finish(false, "An error occured: " + e.Message);
|
||||
return;
|
||||
}
|
||||
@ -87,7 +87,7 @@ namespace keepass2android
|
||||
return;
|
||||
}
|
||||
*/
|
||||
Android.Util.Log.Debug("KP2ATest", "LoadDB OK");
|
||||
Kp2aLog.Log("LoadDB OK");
|
||||
Finish(true);
|
||||
}
|
||||
|
||||
|
@ -76,6 +76,7 @@ namespace keepass2android
|
||||
public static void DisplayMessage(Context ctx, string message)
|
||||
{
|
||||
if ( !String.IsNullOrEmpty(message) ) {
|
||||
Kp2aLog.Log("OnFinish message: "+message);
|
||||
Toast.MakeText(ctx, message, ToastLength.Long).Show();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user