multiimageview: use a wider exception class.

I hate samsung
refactor-toolbar
Floens 7 years ago
parent 1e62f7e31c
commit 1da5b556a0
  1. 3
      Clover/app/src/main/java/org/floens/chan/ui/view/MultiImageView.java

@ -450,8 +450,9 @@ public class MultiImageView extends FrameLayout implements View.OnClickListener
// It'll just show the icon without doing anything. Remove when 4.0 is dropped. // It'll just show the icon without doing anything. Remove when 4.0 is dropped.
return true; return true;
} }
} catch (IllegalStateException e) { } catch (RuntimeException e) {
// getTrackInfo() raises an IllegalStateException on some devices. // getTrackInfo() raises an IllegalStateException on some devices.
// Samsung even throws a RuntimeException.
// Return a default value. // Return a default value.
return true; return true;
} }

Loading…
Cancel
Save