OSDN Git Service

Fix renaming for Bluetooth devices when rotating to landscape
authorAntony Sargent <asargent@google.com>
Tue, 20 Mar 2018 23:15:44 +0000 (16:15 -0700)
committerAntony Sargent <asargent@google.com>
Wed, 21 Mar 2018 22:52:46 +0000 (22:52 +0000)
commit483b1f98bf37bef93370864e6e70646d91cfc3ee
tree4705682b3e69cd51fa1b0bd0e8ecba2e7be7a4a5
parent6cc043ba06c4d7ba138a4752c12081c696b7fa01
Fix renaming for Bluetooth devices when rotating to landscape

The bug here is that when renaming a Bluetooth device (either the local
adapter or a paired device), if you click on the text edit field of the
alert dialog and then rotate the screen, the text shown in the soft
input will disappear. Also it's a usability problem that you even needed
to click in the first place. This CL fixes both problems - now the soft
input will be shown immediately when the dialog comes up, and the
content doesn't disappear on rotation.

Change-Id: Id29d11c834bf98c01b5c1208159537a8fd36a64f
Fixes: 72551780
Test: make -j RunSettingsRoboTests
(cherry picked from commit 5a1587526b9a6ddfdb2bde2f6e24815e9fe5b36a)
src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java
tests/robotests/src/com/android/settings/bluetooth/LocalDeviceNameDialogFragmentTest.java [new file with mode: 0644]