mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-23 19:34:08 +01: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) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
Pair<String,String> pair = getPgnOrFenIntent();
|
||||
String intentPgnOrFen = pair.first;
|
||||
String intentFilename = pair.second;
|
||||
String intentPgnOrFen = null;
|
||||
String intentFilename = null;
|
||||
if (savedInstanceState == null) {
|
||||
Pair<String,String> pair = getPgnOrFenIntent();
|
||||
intentPgnOrFen = pair.first;
|
||||
intentFilename = pair.second;
|
||||
}
|
||||
|
||||
createDirectories();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user