Bug fixes:

- reload DB also works when viewing non-root group
 - Display of current group is refreshed after merging changes
This commit is contained in:
Philipp Crocoll 2014-03-23 15:40:28 +01:00
parent 4c68c0715c
commit 8cb849365e
1 changed files with 10 additions and 0 deletions

View File

@ -102,6 +102,12 @@ namespace keepass2android
Finish();
}
if (resultCode == KeePass.ExitReloadDb)
{
AppTask.SetActivityResult(this, KeePass.ExitReloadDb);
Finish();
}
}
private ISharedPreferences _prefs;
@ -414,6 +420,10 @@ namespace keepass2android
if (!String.IsNullOrEmpty(message))
Toast.MakeText(this, message, ToastLength.Long).Show();
// Tell the adapter to refresh it's list
BaseAdapter adapter = (BaseAdapter)ListAdapter;
adapter.NotifyDataSetChanged();
if (App.Kp2a.GetDb().OtpAuxFileIoc != null)
{
var task2 = new SyncOtpAuxFile(App.Kp2a.GetDb().OtpAuxFileIoc);