diff --git a/DroidFish/src/org/petero/droidfish/DroidFish.java b/DroidFish/src/org/petero/droidfish/DroidFish.java index 04ef5dd..0e2b1db 100644 --- a/DroidFish/src/org/petero/droidfish/DroidFish.java +++ b/DroidFish/src/org/petero/droidfish/DroidFish.java @@ -452,9 +452,13 @@ public class DroidFish extends Activity public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - Pair pair = getPgnOrFenIntent(); - String intentPgnOrFen = pair.first; - String intentFilename = pair.second; + String intentPgnOrFen = null; + String intentFilename = null; + if (savedInstanceState == null) { + Pair pair = getPgnOrFenIntent(); + intentPgnOrFen = pair.first; + intentFilename = pair.second; + } createDirectories();