From 883f448adb5f344e7cba7d5bc3492a2264884e9d Mon Sep 17 00:00:00 2001 From: Rikka Date: Tue, 24 May 2016 18:18:14 +0800 Subject: [PATCH] Add when SecurityException request permission --- app/build.gradle | 2 +- app/src/main/java/rikka/searchbyimage/ui/UploadActivity.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index bc0cd24..e9644c7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,7 +11,7 @@ android { defaultConfig { minSdkVersion 15 targetSdkVersion 23 - versionCode 15001 + versionCode 15002 } buildTypes { diff --git a/app/src/main/java/rikka/searchbyimage/ui/UploadActivity.java b/app/src/main/java/rikka/searchbyimage/ui/UploadActivity.java index 4e73c2f..a12c229 100644 --- a/app/src/main/java/rikka/searchbyimage/ui/UploadActivity.java +++ b/app/src/main/java/rikka/searchbyimage/ui/UploadActivity.java @@ -275,7 +275,7 @@ protected void onCreate(Bundle savedInstanceState) { getContentResolver().openInputStream((Uri) mIntent.getParcelableExtra(Intent.EXTRA_STREAM)); handleSendImage(mIntent); - } catch (FileNotFoundException e) { + } catch (FileNotFoundException | SecurityException e) { new AlertDialog.Builder(this) .setTitle(R.string.permission_require) .setMessage(R.string.permission_require_detail)