[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
Loading
Please register or sign in to comment