Stop showing software keyboard when appropriate

This change assumes the structure inside layout file.
We will change the structure inside the layout, so
fundemental fix should come along the layout change.

Also let software keyboard hide when appropriate.
onBackButtonPressed() loses the focus and hiding
the keyboard doesn't work fine after the call.

Bug: 3192886
Change-Id: Ifd28d1f1fd0d6f72dc1c32c066dd793c6f9f36ab
This commit is contained in:
Daisuke Miyakawa
2010-11-12 16:04:04 -08:00
parent 505a0c2ad0
commit fdb9343ef6
2 changed files with 21 additions and 12 deletions

View File

@@ -163,6 +163,7 @@ public class WifiSettingsForSetupWizardXL extends Activity implements OnClickLis
@Override
public void onClick(View view) {
hideSoftwareKeyboard();
if (view == mAddNetworkButton) {
onAddNetworkButtonPressed();
} else if (view == mRefreshButton) {
@@ -184,7 +185,6 @@ public class WifiSettingsForSetupWizardXL extends Activity implements OnClickLis
} else if (view == mDetailButton) {
mWifiSettings.showDialogForSelectedPreference();
}
hideSoftwareKeyboard();
}
private void hideSoftwareKeyboard() {