Prevents cancellation of update by touching outside progress dialog

This commit is contained in:
Ciaran Gultnieks 2012-09-16 12:02:04 +01:00
parent 18b40b25b3
commit 37afec1f87

View File

@ -503,6 +503,7 @@ public class FDroid extends TabActivity implements OnItemClickListener,
pd = ProgressDialog.show(this, getString(R.string.process_wait_title),
getString(R.string.process_update_msg), true, true);
pd.setIcon(android.R.drawable.ic_dialog_info);
pd.setCanceledOnTouchOutside(false);
Intent intent = new Intent(this, UpdateService.class);
mUpdateReceiver = new UpdateReceiver(new Handler());