From bf84ebef6d471709a66a12674191572324f94733 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 13 Nov 2016 20:29:34 -0800 Subject: [PATCH] Fix help launch crash with MxPlayer acting as default browser --- app/src/main/java/com/limelight/utils/HelpLauncher.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/limelight/utils/HelpLauncher.java b/app/src/main/java/com/limelight/utils/HelpLauncher.java index c0f94121..e027c1f4 100644 --- a/app/src/main/java/com/limelight/utils/HelpLauncher.java +++ b/app/src/main/java/com/limelight/utils/HelpLauncher.java @@ -22,7 +22,11 @@ public class HelpLauncher { context.startActivity(i); return; } - } catch (ActivityNotFoundException e) { + } catch (Exception e) { + // This is only supposed to throw ActivityNotFoundException but + // it can (at least) also throw SecurityException if a user's default + // browser is not exported. We'll catch everything to workaround this. + // Fall through }