Fixed one small bug in config menu
This commit is contained in:
@@ -528,17 +528,18 @@ class Settings
|
|||||||
{
|
{
|
||||||
public void onClick(DialogInterface dialog, int item)
|
public void onClick(DialogInterface dialog, int item)
|
||||||
{
|
{
|
||||||
Globals.DownloadToSdcard = (item != 0);
|
|
||||||
Globals.DataDir = Globals.DownloadToSdcard ?
|
|
||||||
Environment.getExternalStorageDirectory().getAbsolutePath() + "/app-data/" + Globals.class.getPackage().getName() :
|
|
||||||
p.getFilesDir().getAbsolutePath();
|
|
||||||
|
|
||||||
dialog.dismiss();
|
dialog.dismiss();
|
||||||
|
|
||||||
if( item == 2 )
|
if( item == 2 )
|
||||||
showCustomDownloadDirConfig(p);
|
showCustomDownloadDirConfig(p);
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
Globals.DownloadToSdcard = (item != 0);
|
||||||
|
Globals.DataDir = Globals.DownloadToSdcard ?
|
||||||
|
Environment.getExternalStorageDirectory().getAbsolutePath() + "/app-data/" + Globals.class.getPackage().getName() :
|
||||||
|
p.getFilesDir().getAbsolutePath();
|
||||||
showConfigMainMenu(p);
|
showConfigMainMenu(p);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
AlertDialog alert = builder.create();
|
AlertDialog alert = builder.create();
|
||||||
|
|||||||
Reference in New Issue
Block a user