Skip to content

Commit

Permalink
Fix for "Calculating App Size" dialog. Fixes #536.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedre committed Jun 9, 2015
1 parent f07557b commit 72af218
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,6 @@ protected void onPostExecute(Boolean result) {

private class LoadStorageOptionsTask extends AsyncTask<Void, Void, Void> {

private ProgressDialog dialog;
private Context appContext;

public LoadStorageOptionsTask(Context context) {
Expand All @@ -284,10 +283,7 @@ public LoadStorageOptionsTask(Context context) {

@Override
protected void onPreExecute() {
dialog = new ProgressDialog(getActivity());
dialog.setMessage(getString(R.string.prefs_calculating_app_size));
dialog.setCancelable(false);
dialog.show();
mListStoragePref.setSummary(R.string.prefs_calculating_app_size);
}

@Override
Expand All @@ -301,8 +297,7 @@ protected void onPostExecute(Void aVoid) {
if (!mIsPaused) {
loadStorageOptions(appContext);
mLoadStorageOptionsTask = null;
dialog.dismiss();
dialog = null;
mListStoragePref.setSummary(R.string.prefs_app_location_summary);
}
}
}
Expand Down

0 comments on commit 72af218

Please sign in to comment.