diff options
author | lado <herrlado@gmail.com> | 2013-03-27 23:24:14 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2013-03-27 23:24:14 +0100 |
commit | 04c2dbbe888080ef8083763900041b45885712f0 (patch) | |
tree | 3ee94a166e67f1ce4ef4147ff30228c30590c470 /vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseActivity.java | |
parent | dbf28d356eb97b3075229bbc42a8a3ccf1c94ec0 (diff) | |
download | vdr-manager-04c2dbbe888080ef8083763900041b45885712f0.tar.gz vdr-manager-04c2dbbe888080ef8083763900041b45885712f0.tar.bz2 |
Merged from comrepss branch + better cancellable handling
Diffstat (limited to 'vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseActivity.java')
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseActivity.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseActivity.java index de3d42e..d9dc70f 100644 --- a/vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseActivity.java +++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/BaseActivity.java @@ -4,6 +4,8 @@ import java.util.List; import android.app.AlertDialog; import android.app.ProgressDialog; +import android.content.DialogInterface; +import android.content.DialogInterface.OnCancelListener; import android.content.Intent; import android.content.res.Configuration; import android.os.Bundle; @@ -205,7 +207,14 @@ public abstract class BaseActivity<Result, T extends ListView> extends super.onCreate(savedInstanceState); Preferences.setLocale(this); progress = new ProgressDialog(this); - + progress.setCancelable(false); + progress.setCanceledOnTouchOutside(false); +// progress.setOnCancelListener(new OnCancelListener() { +// @Override +// public void onCancel(DialogInterface dialog) { +// +// } +// }); initActionBar(); |