[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:
Ryan Houdek 2015-06-13 08:37:56 -05:00
parent 4042945ee5
commit 7c4e6c7eb9
1 changed files with 2 additions and 0 deletions

View File

@ -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);