fixed a logic error in determining the default location of user/system folders.
This commit is contained in:
@@ -14,7 +14,6 @@ import javax.microedition.khronos.egl.EGLContext;
|
||||
import javax.microedition.khronos.egl.EGLDisplay;
|
||||
import javax.microedition.khronos.egl.EGLSurface;
|
||||
|
||||
import net.wagic.app.R;
|
||||
import net.wagic.utils.StorageOptions;
|
||||
import android.app.Activity;
|
||||
import android.app.AlertDialog;
|
||||
@@ -118,8 +117,8 @@ public class SDLActivity extends Activity implements OnKeyListener{
|
||||
public void updateStorageLocations() {
|
||||
boolean usesInternalSdCard = (!getSharedPreferences(kWagicSharedPreferencesKey, MODE_PRIVATE).getBoolean(kStoreDataOnRemovableSdCardPreference, false)) && Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState());
|
||||
|
||||
systemFolder = (usesInternalSdCard ? sdcardPath : internalPath) + "/Res/";
|
||||
userFolder = (usesInternalSdCard ? sdcardPath : internalPath) + "/User/";
|
||||
systemFolder = (usesInternalSdCard ? internalPath : sdcardPath) + "/Res/";
|
||||
userFolder = (usesInternalSdCard ? internalPath : sdcardPath) + "/User/";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user