mirror of
https://github.com/emanuele-f/PCAPdroid.git
synced 2026-07-03 21:21:12 +08:00
Catch possible SecurityException in startActivity
It may be thrown if a private component is called
This commit is contained in:
parent
42c9ec389e
commit
7d794e2d65
@ -1043,7 +1043,7 @@ public class Utils {
|
||||
public static void startActivity(Context ctx, Intent intent) {
|
||||
try {
|
||||
ctx.startActivity(intent);
|
||||
} catch (ActivityNotFoundException e) {
|
||||
} catch (ActivityNotFoundException | SecurityException e) {
|
||||
showToastLong(ctx, R.string.no_intent_handler_found);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user