Skip to content

Commit

Permalink
Merge pull request #308 from ianhanniballake/fix_beta5
Browse files Browse the repository at this point in the history
Catch FileUriExposedExceptions when starting view intents
  • Loading branch information
ianhanniballake committed Dec 20, 2016
2 parents ac73bb8 + bdd25af commit 07883f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Expand Up @@ -20,7 +20,6 @@
import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.annotation.TargetApi;
import android.app.WallpaperManager;
import android.content.ActivityNotFoundException;
import android.content.ComponentName;
Expand Down Expand Up @@ -177,7 +176,9 @@ public void onClick(View view) {
viewIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
try {
startActivity(viewIntent);
} catch (ActivityNotFoundException | SecurityException e) {
} catch (RuntimeException e) {
// Catch ActivityNotFoundException, SecurityException,
// and FileUriExposedException
Toast.makeText(MuzeiActivity.this, R.string.error_view_details,
Toast.LENGTH_SHORT).show();
Log.e(TAG, "Error viewing artwork details.", e);
Expand Down
6 changes: 3 additions & 3 deletions version.properties
Expand Up @@ -16,9 +16,9 @@

name = 2.3
# Use 10*name for the base version code plus 2*(betaNumber-1) for beta builds
codeWear = 23008
codeWear = 23010
# Add one to codeWear to ensure a unique version code for the main app
code = 23009
code = 23011

# Latest beta number for this version. Only applies to beta builds.
betaNumber = Beta 5
betaNumber = Beta 6

0 comments on commit 07883f7

Please sign in to comment.