Fixed one small bug in config menu

This commit is contained in:
pelya
2010-12-29 13:02:37 +00:00
parent 154e2e3eda
commit 0754273a70

View File

@@ -528,17 +528,18 @@ class Settings
{
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();
if( item == 2 )
showCustomDownloadDirConfig(p);
else
{
Globals.DownloadToSdcard = (item != 0);
Globals.DataDir = Globals.DownloadToSdcard ?
Environment.getExternalStorageDirectory().getAbsolutePath() + "/app-data/" + Globals.class.getPackage().getName() :
p.getFilesDir().getAbsolutePath();
showConfigMainMenu(p);
}
}
});
AlertDialog alert = builder.create();