mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-02-17 09:37:50 +01:00
DroidFish: Make sure a too large string is not passed to the edit board
activity.
This commit is contained in:
parent
94c9d914ac
commit
ce800d9beb
|
@ -526,7 +526,7 @@ public class DroidFish extends Activity
|
|||
TextIO.readFEN(intentPgnOrFen);
|
||||
} catch (ChessParseError e2) {
|
||||
if (e2.pos != null)
|
||||
startEditBoard(intentPgnOrFen);
|
||||
startEditBoard(TextIO.toFEN(e2.pos));
|
||||
}
|
||||
}
|
||||
} else if (intentFilename != null) {
|
||||
|
@ -3757,7 +3757,7 @@ public class DroidFish extends Activity
|
|||
TextIO.readFEN(fen);
|
||||
} catch (ChessParseError e2) {
|
||||
if (e2.pos != null)
|
||||
startEditBoard(fen);
|
||||
startEditBoard(TextIO.toFEN(e2.pos));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user