History log of /packages/apps/Settings/src/com/android/settings/deviceinfo/DeviceNamePreferenceController.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
74b1da533808d953b4f7bdd0ae8d99206196d981 06-Apr-2018 Daniel Nishi <dhnishi@google.com> Warn users before they change device name.

This ensures users know that the change they make will be visible
through Bluetooth and Wi-Fi Hotspot.

Fixes: 74981919
Test: Settings robotest

Merged-In: Ib27066f4a123dc472730d7e663adfb039b1e27d6
/packages/apps/Settings/src/com/android/settings/deviceinfo/DeviceNamePreferenceController.java
103b4d4619ef73d8ff46c405bc547ee4a24a19be 13-Mar-2018 Daniel Nishi <dhnishi@google.com> Don't allow a zero-length device name to work.

Technically, if a device has a zero-length device name, the bug will
resurface. The EditText validator doesn't trigger on opening -- only
when the text is edited. A zero-length device name is flagged as being
invalid, but that fails if the text box starts empty.

By pre-filling it with the previous device name, we can ensure that, as
long as a zero-length device name is never set, it can never be set.

Change-Id: I0d28aaae09f99b7d697b753835ba39c0c06644a1
Fixes: 73127912
Test: Robotest
(cherry picked from commit b2165509445c0c63b1813132d8b92b119bd44d57)
/packages/apps/Settings/src/com/android/settings/deviceinfo/DeviceNamePreferenceController.java
906572b127e57aac01bfe1a45ddcc7f053883f47 27-Feb-2018 Fan Zhang <zhfan@google.com> Change PreferenceController#getSummary return type.

Return CharSequence instead of String.

All user visible string should be modeled as CharSequence.

Bug: 73950519
Test: robotest
Change-Id: I30befef0c33f94351d4a2774e283bd1ed804aa8b
/packages/apps/Settings/src/com/android/settings/deviceinfo/DeviceNamePreferenceController.java
a633b39cfada1a484ec4ba184d3e9723577b8db6 18-Jan-2018 Daniel Nishi <dhnishi@google.com> Add device name to About Phone page.

The device name is reflected in three places: A Settings.Global flag
which can be read by third party apps, the Bluetooth device name, and
the Wi-Fi tethering hotspot name.

The Bluetooth and Wi-Fi names can be changed independently of the device
name, but if the user sets the device name, they are all changed in
parallel.

Due to the naming restrictions of Bluetooth devices and SSIDs, the SSID
naming restrictions apply to the device name.

Bug: 63819909
Test: Robotest
Change-Id: I3a81535fc07d183557a6fa5d54baef3c7868499c
/packages/apps/Settings/src/com/android/settings/deviceinfo/DeviceNamePreferenceController.java