Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 96aab33

Browse files
keianhzobluemarvin
authored andcommitted
Catch all exceptions when starting an external activity (#3585)
1 parent a2ff180 commit 96aab33

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/WindowWidget.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55

66
package org.mozilla.vrbrowser.ui.widgets;
77

8-
import android.content.ActivityNotFoundException;
98
import android.content.Context;
10-
import android.content.SharedPreferences;
119
import android.content.Intent;
10+
import android.content.SharedPreferences;
1211
import android.content.pm.PackageManager;
1312
import android.content.res.Configuration;
1413
import android.graphics.Canvas;
@@ -1720,7 +1719,7 @@ public void onExternalResponse(@NonNull GeckoSession geckoSession, @NonNull Geck
17201719
if (index == PromptDialogWidget.POSITIVE) {
17211720
try {
17221721
getContext().startActivity(newIntent);
1723-
} catch (ActivityNotFoundException ignored) {
1722+
} catch (Exception ignored) {
17241723
showAlert(
17251724
getResources().getString(R.string.download_open_file_error_title),
17261725
getResources().getString(R.string.download_open_file_error_body),

0 commit comments

Comments
 (0)