OSDN Git Service

[WifiSettings] Submit Wi-Fi dialog with enter key
authorMaurice Lam <yukl@google.com>
Thu, 27 Aug 2015 23:06:55 +0000 (16:06 -0700)
committerMaurice Lam <yukl@google.com>
Mon, 14 Sep 2015 19:07:06 +0000 (12:07 -0700)
commit2662df843327dd938225c75722d0bbf3b01068f7
tree61b9acf9a3b04085912821a7a29f0a21698c73ee
parente3be8eb3e5b6c9d178f7af5d3c47c8a2cddb4d80
[WifiSettings] Submit Wi-Fi dialog with enter key

Add a OnKeyListener for hardware keyboards and an
OnEditorActionListener for on-screen IMEs to submit the Wi-Fi dialog
with the currently entered information.

Before committing the action, check for whether the dialog is
submittable -- that is checking whether all necessary information has
been entered. If not the enter key behaves the same as it is before
the change.

Bug: 22211604
Change-Id: Idede4233a7385d3bcd8fd6614948270280536bf1
src/com/android/settings/wifi/SavedAccessPointsWifiSettings.java
src/com/android/settings/wifi/WifiConfigController.java
src/com/android/settings/wifi/WifiConfigUiBase.java
src/com/android/settings/wifi/WifiDialog.java
src/com/android/settings/wifi/WifiSettings.java