Fallback to external files dir, if writedir invalid(empty)
This commit is contained in:
parent
300e65e200
commit
2d04a3faa9
1 changed files with 7 additions and 1 deletions
|
@ -135,6 +135,12 @@ public class XashActivity extends Activity {
|
||||||
mUseRoDir = mPref.getBoolean("use_rodir", false);
|
mUseRoDir = mPref.getBoolean("use_rodir", false);
|
||||||
mWriteDir = mPref.getString("writedir", FWGSLib.getExternalFilesDir( this ));
|
mWriteDir = mPref.getString("writedir", FWGSLib.getExternalFilesDir( this ));
|
||||||
|
|
||||||
|
// just in case
|
||||||
|
if( mWriteDir.length() == 0 )
|
||||||
|
{
|
||||||
|
mWriteDir = FWGSLib.getExternalFilesDir( this );
|
||||||
|
}
|
||||||
|
|
||||||
if( mPref.getBoolean( "folderask", true ) )
|
if( mPref.getBoolean( "folderask", true ) )
|
||||||
{
|
{
|
||||||
Log.v( TAG, "folderask == true. Opening FPicker..." );
|
Log.v( TAG, "folderask == true. Opening FPicker..." );
|
||||||
|
|
Loading…
Add table
Reference in a new issue