fix bug with bringing up the keyboard

hide donation option in PasswordActivity
This commit is contained in:
Philipp Crocoll 2016-03-22 20:16:56 +01:00
parent 0bab9abac5
commit dc691c86dc
4 changed files with 7 additions and 2 deletions

View File

@ -86,7 +86,6 @@
<Compile Include="Io\IFileStorage.cs" />
<Compile Include="Io\IoUtil.cs" />
<Compile Include="Io\JavaFileStorage.cs" />
<Compile Include="Io\NetFtpFileStorage.cs" />
<Compile Include="Io\OfflineSwitchableFileStorage.cs" />
<Compile Include="Io\SftpFileStorage.cs" />
<Compile Include="Io\SkyDriveFileStorage.cs" />

View File

@ -460,7 +460,7 @@ namespace keepass2android
}
catch (Exception e)
{
Kp2aLog.LogUnexpectedError(new Exception("Cannot UpdateOfflineModeMenu " + (App.Kp2a == null) + " " + ((App.Kp2a == null) || (App.Kp2a.GetDb() == null)) + " " (((App.Kp2a == null) || (App.Kp2a.GetDb() == null) || (App.Kp2a.GetDb().Ioc == null)) + " " + (_syncItem != null) + " " + (_offlineItem != null) + " " + (_onlineItem != null))));
Kp2aLog.LogUnexpectedError(new Exception("Cannot UpdateOfflineModeMenu " + (App.Kp2a == null) + " " + ((App.Kp2a == null) || (App.Kp2a.GetDb() == null)) + " " + (((App.Kp2a == null) || (App.Kp2a.GetDb() == null) || (App.Kp2a.GetDb().Ioc == null)) + " " + (_syncItem != null) + " " + (_offlineItem != null) + " " + (_onlineItem != null))));
}
}

View File

@ -997,6 +997,11 @@ namespace keepass2android
{
Util.GotoDonateUrl(this);
};
FindViewById(Resource.Id.btn_nav_donate).Visibility =
PreferenceManager.GetDefaultSharedPreferences(this)
.GetBoolean(this.GetString(Resource.String.NoDonateOption_key), false)
? ViewStates.Gone
: ViewStates.Visible;
FindViewById(Resource.Id.btn_nav_about).Click += (sender, args) =>
{
AboutDialog dialog = new AboutDialog(this);

View File

@ -430,6 +430,7 @@ namespace keepass2android
StartActivity(i);
prefs.Edit().PutBoolean("has_asked_autofillservice", true).Commit();
}
else ActivateKeyboardIfAppropriate(closeAfterCreate, prefs);
}
else ActivateKeyboardIfAppropriate(closeAfterCreate, prefs);