OSDN Git Service

Remove invalid call of "clearFocus" in SetupWizard......
authorsatok <satok@google.com>
Fri, 28 Jan 2011 08:36:27 +0000 (17:36 +0900)
committersatok <satok@google.com>
Fri, 28 Jan 2011 09:03:47 +0000 (18:03 +0900)
Bug: 3398097

- Also disabled logging......
- Once you call "clearFocus", onFocusChanged will be called and
  EditText will try to show the keyboard again. And while bringing up the keyboard,
  the activity is changed and it will end up with the keyboard being shown in the next activity...

Change-Id: If4d3876d4950bb2583c5588f462a94d022d6a7cf

src/com/android/settings/wifi/WifiSettingsForSetupWizardXL.java

index 9bc5211..be18177 100644 (file)
@@ -49,7 +49,7 @@ import java.util.EnumMap;
  */
 public class WifiSettingsForSetupWizardXL extends Activity implements OnClickListener {
     private static final String TAG = "SetupWizard";
-    private static final boolean DEBUG = true;
+    private static final boolean DEBUG = false;
 
     private static final EnumMap<DetailedState, DetailedState> stateMap =
             new EnumMap<DetailedState, DetailedState>(DetailedState.class);
@@ -222,11 +222,10 @@ public class WifiSettingsForSetupWizardXL extends Activity implements OnClickLis
     }
 
     private void hideSoftwareKeyboard() {
-        Log.i(TAG, "Hiding software keyboard.");
+        if (DEBUG) Log.i(TAG, "Hiding software keyboard.");
         final View focusedView = getCurrentFocus();
         if (focusedView != null) {
             mInputMethodManager.hideSoftInputFromWindow(focusedView.getWindowToken(), 0);
-            focusedView.clearFocus();
         }
     }