Skip to content

Commit

Permalink
Fixed crash when swiping to a deleted image in an album
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumBadger committed Sep 15, 2020
1 parent f20ddaf commit d0b7ff3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions assets/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
94/1.14
Fixed crash when opening video controls
Fixed ANR caused by legacy GIF decoding
Fixed crash when swiping to a deleted image in an album

93/1.13
Ability to customise action bar buttons (thanks to Cameron Merkel)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ public static void onLinkClicked(
final int albumImageIndex,
final boolean fromExternalIntent) {

if(url == null) {
General.quickToast(activity, R.string.link_does_not_exist);
return;
}

final SharedPreferences sharedPreferences
= PreferenceManager.getDefaultSharedPreferences(activity);

Expand Down
4 changes: 4 additions & 0 deletions src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1299,4 +1299,8 @@

<string name="title_attribution">Attribution</string>

<!-- 2020-09-15 -->

<string name="link_does_not_exist">This link does not exist. It may have been deleted.</string>

</resources>

0 comments on commit d0b7ff3

Please sign in to comment.