more paranoid setting: QuickUnlock doesn't show the filename either when filenames are not remembered

This commit is contained in:
Philipp Crocoll 2013-07-27 09:36:32 +02:00
parent 4294791d76
commit 8c682d8a24

View File

@ -54,9 +54,20 @@ namespace keepass2android
FindViewById(Resource.Id.filename_label).Visibility = ViewStates.Invisible;
((TextView)FindViewById(Resource.Id.qu_filename)).Text = App.Kp2a.GetDb().KpDatabase.Name;
} else
{
if (
PreferenceManager.GetDefaultSharedPreferences(this)
.GetBoolean(GetString(Resource.String.RememberRecentFiles_key),
Resources.GetBoolean(Resource.Boolean.RememberRecentFiles_default)))
{
((TextView)FindViewById(Resource.Id.qu_filename)).Text = _ioc.Path;
}
else
{
((TextView)FindViewById(Resource.Id.qu_filename)).Text = "*****";
}
}
TextView txtLabel = (TextView)FindViewById(Resource.Id.QuickUnlock_label);