mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-19 04:02:23 +01:00
DroidFish: Accept VIEW intent with mime type application/x-chess-fen.
This commit is contained in:
@@ -456,7 +456,8 @@ public class DroidFish extends Activity implements GUIInterface {
|
||||
Intent intent = getIntent();
|
||||
Uri data = intent.getData();
|
||||
if (data == null) {
|
||||
if (Intent.ACTION_SEND.equals(intent.getAction()) &&
|
||||
if ((Intent.ACTION_SEND.equals(intent.getAction()) ||
|
||||
Intent.ACTION_VIEW.equals(intent.getAction())) &&
|
||||
("application/x-chess-pgn".equals(intent.getType()) ||
|
||||
"application/x-chess-fen".equals(intent.getType())))
|
||||
pgnOrFen = intent.getStringExtra(Intent.EXTRA_TEXT);
|
||||
|
||||
Reference in New Issue
Block a user