Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbWatershed committed Jun 11, 2023
1 parent 42f4dce commit e4755d6
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -650,9 +650,11 @@ public void onGalleryPageStarted() {
// Greys out the action button
// useful for sites with JS loading that do not trigger onPageStarted (e.g. Luscious, Pixiv)
runOnUiThread(() -> {
binding.actionButton.setImageDrawable(ContextCompat.getDrawable(this, downloadIcon));
binding.actionButton.setVisibility(View.INVISIBLE);
binding.actionBtnBadge.setVisibility(View.INVISIBLE);
if (binding != null) {
binding.actionButton.setImageDrawable(ContextCompat.getDrawable(this, downloadIcon));
binding.actionButton.setVisibility(View.INVISIBLE);
binding.actionBtnBadge.setVisibility(View.INVISIBLE);
}
});
}

Expand Down

0 comments on commit e4755d6

Please sign in to comment.