mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-04-03 19:00:43 +02:00
DroidFish: Fixed intent handling in low memory situations.
Lifecycle handling was wrong, causing the received activity intent to be reprocessed if the activity was recreated after a previous low memory situation. This problem could be triggered by enabling "Don't keep activities" in developer options and sending a pgn file intent to DroidFish.
This commit is contained in:
parent
ea1788bcdb
commit
97160698a9
@ -452,9 +452,13 @@ public class DroidFish extends Activity
|
|||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
String intentPgnOrFen = null;
|
||||||
|
String intentFilename = null;
|
||||||
|
if (savedInstanceState == null) {
|
||||||
Pair<String,String> pair = getPgnOrFenIntent();
|
Pair<String,String> pair = getPgnOrFenIntent();
|
||||||
String intentPgnOrFen = pair.first;
|
intentPgnOrFen = pair.first;
|
||||||
String intentFilename = pair.second;
|
intentFilename = pair.second;
|
||||||
|
}
|
||||||
|
|
||||||
createDirectories();
|
createDirectories();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user