mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-02-06 20:29:10 +01:00
DroidFish: Avoid crash if startActivity throws ActivityNotFoundException.
This commit is contained in:
parent
2b7011acfe
commit
d0c5e9d15a
|
@ -1905,7 +1905,11 @@ public class DroidFish extends Activity implements GUIInterface {
|
|||
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
|
||||
i.setType("text/plain");
|
||||
i.putExtra(Intent.EXTRA_TEXT, ctrl.getPGN());
|
||||
startActivity(Intent.createChooser(i, getString(R.string.share_pgn_game)));
|
||||
try {
|
||||
startActivity(Intent.createChooser(i, getString(R.string.share_pgn_game)));
|
||||
} catch (ActivityNotFoundException ex) {
|
||||
// Ignore
|
||||
}
|
||||
}
|
||||
|
||||
private final Dialog fileMenuDialog() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user