Remove invalid call of "clearFocus" in SetupWizard......
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
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user