mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-13 01:22:41 +01:00
DroidFish: Avoid crash if startActivity throws ActivityNotFoundException.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user