summaryrefslogtreecommitdiff
authorkejun.gao <kejun.gao@amlogic.com>2012-06-29 08:58:00 (GMT)
committer kejun.gao <kejun.gao@amlogic.com>2012-06-29 09:05:13 (GMT)
commitfe87ed14a35b4ace3a06b84335407285330854ac (patch)
treebf91b42cfc09d5286f494cdf76c40b2d6c496442
parent6d43cb01da95ed7a9861c98a837d06dc044188bb (diff)
downloadPPPoE-fe87ed14a35b4ace3a06b84335407285330854ac.zip
PPPoE-fe87ed14a35b4ace3a06b84335407285330854ac.tar.gz
PPPoE-fe87ed14a35b4ace3a06b84335407285330854ac.tar.bz2
Enable cancel operation while connecting.
Disable cancel operation while disconnecting.
Diffstat
-rwxr-xr-xsrc/com/amlogic/PPPoE/PppoeConfigDialog.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/amlogic/PPPoE/PppoeConfigDialog.java b/src/com/amlogic/PPPoE/PppoeConfigDialog.java
index 1f46749..4e7d5ee 100755
--- a/src/com/amlogic/PPPoE/PppoeConfigDialog.java
+++ b/src/com/amlogic/PPPoE/PppoeConfigDialog.java
@@ -309,7 +309,11 @@ public class PppoeConfigDialog extends AlertDialog implements DialogInterface.On
waitDialog.setTitle("");
waitDialog.setMessage(this.context.getResources().getString(id));
waitDialog.setIcon(null);
- waitDialog.setButton(android.content.DialogInterface.BUTTON_POSITIVE,this.context.getResources().getString(R.string.menu_cancel),cancelBtnClickListener);
+
+ if (id == R.string.pppoe_dial_waiting_msg){
+ waitDialog.setButton(android.content.DialogInterface.BUTTON_POSITIVE,this.context.getResources().getString(R.string.menu_cancel),cancelBtnClickListener);
+ }
+
waitDialog.setIndeterminate(false);
waitDialog.setCancelable(true);
waitDialog.show();