fix crash on Android 6

-> 1.0.0 pre7b
This commit is contained in:
Philipp Crocoll 2016-01-30 13:25:24 +01:00
parent 9ddc142d98
commit b49fcb8ebe
2 changed files with 3 additions and 3 deletions

View File

@ -929,7 +929,7 @@ namespace keepass2android
public override void OnRequestPermissionsResult(int requestCode, string[] permissions, Permission[] grantResults)
{
if ((requestCode == FingerprintPermissionRequestCode) && (grantResults.Any()) && (grantResults[0] == Permission.Granted))
if ((requestCode == FingerprintPermissionRequestCode) && (grantResults.Length > 0) && (grantResults[0] == Permission.Granted))
{
var btn = FindViewById<ImageButton>(Resource.Id.fingerprintbtn);
btn.Click += (sender, args) =>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="74"
android:versionName="1.0.0 preview 7"
android:versionCode="75"
android:versionName="1.0.0 preview 7b"
package="keepass2android.keepass2android"
android:installLocation="auto">
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23" />