summaryrefslogtreecommitdiff
authorkejun.gao <kejun.gao@amlogic.com>2012-06-29 06:25:02 (GMT)
committer kejun.gao <kejun.gao@amlogic.com>2012-06-29 09:01:48 (GMT)
commit60951202129612a9e010501e519557b8aa499cc6 (patch)
treeba83e2221a8218e75dda24f18b7ed1b0730da2f5
parent0bf469825d289823e41581323d6a3ff69dda9fee (diff)
downloadPPPoE-60951202129612a9e010501e519557b8aa499cc6.zip
PPPoE-60951202129612a9e010501e519557b8aa499cc6.tar.gz
PPPoE-60951202129612a9e010501e519557b8aa499cc6.tar.bz2
Revert "Disable cancel operation while connect/disconnect pppoe"
This reverts commit 6a00848c2018fa4399a2c4ba1c2c56bd6a1b0ada.
Diffstat
-rwxr-xr-xsrc/com/amlogic/PPPoE/PppoeConfigDialog.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/com/amlogic/PPPoE/PppoeConfigDialog.java b/src/com/amlogic/PPPoE/PppoeConfigDialog.java
index 4a63c28..16ede8a 100755
--- a/src/com/amlogic/PPPoE/PppoeConfigDialog.java
+++ b/src/com/amlogic/PPPoE/PppoeConfigDialog.java
@@ -307,10 +307,16 @@ 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),clickListener);
waitDialog.setIndeterminate(false);
- waitDialog.setCancelable(false);
+ waitDialog.setCancelable(true);
waitDialog.show();
+
+ Button button = waitDialog.getButton(android.content.DialogInterface.BUTTON_POSITIVE);
+ button.setFocusable(true);
+ button.setFocusableInTouchMode(true);
+ button.requestFocus();
+ button.requestFocusFromTouch();
}
private void saveInfoData()