[Android] Make sure we are setting the default user directory.
This fixes an issue where the settings aren't being saved correctly because the user directory is never set before a run of the game.
This commit is contained in:
parent
4042945ee5
commit
7c4e6c7eb9
|
@ -83,6 +83,8 @@ public final class GameGridActivity extends Activity implements LoaderManager.Lo
|
|||
// Stuff in this block only happens when this activity is newly created (i.e. not a rotation)
|
||||
if (savedInstanceState == null)
|
||||
{
|
||||
NativeLibrary.SetUserDirectory(""); // Auto-Detect
|
||||
|
||||
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
|
||||
boolean assetsCopied = preferences.getBoolean("assetsCopied", false);
|
||||
|
||||
|
|
Loading…
Reference in New Issue