History log of /packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
483b1f98bf37bef93370864e6e70646d91cfc3ee 21-Mar-2018 Antony Sargent <asargent@google.com> 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)
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.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/bluetooth/BluetoothNameDialogFragment.java
63a0560a6ca57c517f9364b860fda7ad9c5b7bb5 14-Jun-2017 PMS22 <prathams99@rediff.com> Settings: Correctly align cursor in Settings

Steps to Reproduce:
- Click on Density Settings (DPI Settings) / Renaming BT Device / Renaming SIM Settings
- EditText Dialog pops up
- The cursor is at the leftmost side of the text
- Logically Cursor should be at rightmost side which can be aligned grabbing text length

Screenshots:
Before:
http://imgur.com/a/o4vkr
http://imgur.com/a/6Qext

After:
http://imgur.com/a/fuxqT
http://imgur.com/a/vm2WX

Bug: 65185652
Test: RunSettingsRoboTests: OK (47 tests)

Change-Id: Id00308e7e019434edad4afab56cf4719be0d0d54
Signed-off-by: PMS22 <prathams99@rediff.com>
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java
f57e1673758f0a54398d5426314a8fe73a9f96c2 12-Jul-2017 Fan Zhang <zhfan@google.com> UI refresh on bluetooth list page

- xml layout clean up
- add "Device name" preference, tapping will bring up rename dialog
- Remove tap target from original device_name pref

Change-Id: I6e9764dbb6c51f94be6d6a61d5a6401141407409
Bug: 62890841
Bug: 62891178
Test: robotests
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java
843c3ead6dfef2c57f8f435fc844ae2e58ade74d 16-Jun-2017 Antony Sargent <asargent@google.com> Add a rename dialog for paired Bluetooth devices

This adds an icon to the paired device details page which users can
click on to bring up a dialog for changing the display name for that
device.

We already had a dialog for changing the advertised name of the local
Bluetooth adapter that's used on the main Bluetooth settings page, so
I've made that abstract and created two new subclasses to encapsulate
the slight differences for this use case.

Bug: 62535241
Test: make RunSettingsRoboTests
Change-Id: I1c407f276e12aedf066a336e24b4ccd16d67c4df
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java
ae86781edd7dc508f6cc2a9470b97fb4e3ee1398 25-Apr-2017 jackqdyulei <jackqdyulei@google.com> Add bluetooth visible item

Show "Visible as [Device name]". Also remove the menuitem for
changing device name.

This cl creates a preference controller to handle the logic for
device name preference.

Bug: 35876447
Test: RunSettingsRoboTests

Change-Id: I9ab6c9d2df5b053d15b8ff887073ef82616243a4
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java
265d3c2a0c36251bf8a9f571d7239b6dd404d942 22-Jun-2016 Tamas Berghammer <tberghammer@google.com> Update package names to work with the proto3 compiler

Bug: b/28974522
Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java
1e516287bd0c910f83d2ead28bf67e26dfbead86 16-Sep-2016 Fan Zhang <zhfan@google.com> Add visibility metrics to dialogs.

Bug: 30681529
Test: adb logcat -b events | egrep "(sysui_|notification_)"
Change-Id: I199d2e1b2cb8588a562b46bb8128d8ece24952f0
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java
1c1320a84d22419efb3bf45d970f80b33658edc2 12-May-2014 Srinu Jella <sjella@codeaurora.org> Bluetooth: Fix to avoid taking space as name upon orientation

Use case: Renaming the DUT name on orientation chnage

STR:
1) Go for the option of rename phone.
2) give only space characters.
3) The rename option shows disabled.
4) Change the orientation of the phone.
5) Check whether it accepts space as a name.

Failure: Renaming a phone with space characters gets
accepted during change in orientation.Accepted
space as BT name upon changing orientation

Root cause: There is no check for validating the input
string while renaming the device name on orientation change.

Fix: This fix is to avoid taking space character as a name in the
BluetoothNameDialogFragment upon orientation change from
PORTRAIT mode to LANDSCAPE mode and vice versa.

Change-Id: Ia66f27bb9b06739e42d73b15745c12a42512a1fc
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java
0ef5c998f2f248195fbc8334e72cfdb87c77e614 31-Mar-2015 Etan Cohen <etancohen@google.com> Merge commit 'fe47522' into merge
fe475227efdf69a4342a1e393ae60ca01fe9af30 23-Mar-2015 Sanket Padawe <sanketpadawe@google.com> Fix "Rename device" BT settings to avoid accepting blank spaces.

Bug: 16157293
Change-Id: I0eddafd9fad89b76ab1d00005ca4a4f2725eb83e
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java
f2982a9ba19340b474bafb6b0bf5832673984e0d 04-Feb-2015 Jason Monk <jmonk@google.com> Move isolatable bluetooth code to SettingsLib

Move the non-ui bluetooth control/tracking code to SettingsLib so
that it can be shared with others.

Mostly just move classes to frameworks/base/packages/SettingsLib,
however a few things had to move around.
- Dock handling had to move back to code still in settings
- Local preference related code had to be moved back to settings
- Added an error flow from SettingsLib to Settings

Depends on I69fd888362c6dbb325f6113b32c4b15cc6a23a41
Bug: 19180466
Change-Id: Ie57fe26a27bbb0adc2ef69e042a05c7290c6a52a
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java
cefd0c93ce606250274036025bfcd44fd19b53a0 11-Aug-2014 PauloftheWest <paulofthewest@google.com> Removed the white icon from Bluetooth rename dialog.

Bug: 15538917
Change-Id: I4e3bca9e8ff6c348af22cdfb17ee3b047ae12d2c
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java
ed7b44d83ded493c089b2f22850a3d48d5e7e609 08-Aug-2014 PauloftheWest <paulofthewest@google.com> Fixed Bluetooth renaming bug.

+ After renaming your Bluetooth device, the title of the Bluetooth
Activity stays "Bluetooth" instead of changing to the new name.
+ After renaming the device, the status at the bottom Bluetooth Settings
is correctly displayed.

Bug: 16463239
Change-Id: Ifb12df2004fe1f89bd6f918e23c2c64ae08a0191
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java
3b52963edf968fd007c86950086cce0a6ba31692 06-Feb-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #12898564 Settings Crash on Renaming the device.

- remove the call to PreferencesActivity as we are no more using the PreferencesActivity

Also set correct activity title with the new selected BT name for the device.

Change-Id: I03497187e0410ff2bba87bdb04a197938d1ea967
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java
eb56b9ccb8fa70a6c567d0bcd02f821e4de4bf7b 19-Nov-2013 Wei Wang <weiwa@google.com> BLE peripheral mode (4/4): Settings change for advertising preference.

Change-Id: I5721f136267fe25e55f764bb4a6c53acd45b318b
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java
a9534367b5be907885fe0e2f10375889aeaf635b 14-Mar-2012 Jake Hamby <jhamby@google.com> Fix IME soft keyboard for Bluetooth rename device dialog.

The soft keyboard should automatically pop up when the user selects
the Bluetooth rename device menu item. Fixed by calling
setSoftInputMode(SOFT_INPUT_STATE_ALWAYS_VISIBLE) on the Window
containing the AlertDialog before showing.

The device name field should also be a single line field, with the
Done button causing the device to be renamed. Set the "singleLine"
attribute in the layout XML to true, and added a
TextView.OnEditorActionListener to set the device name and dismiss
the dialog for EditorInfo.IME_ACTION_DONE.

Bug: 5342542
Bug: 5343354
Change-Id: I550d8e9a59395ad66f8a9c11d29c0f2ef278c196
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java
e96f04c1ffaa99992f9ed4c2687db0b955ae0450 20-Jul-2011 jhtop.kim <jhtop.kim@samsung.com> Bluetooth : fix for Settings crashes while rotating the screen.

- Add some codes preventing setting crash when rotating the screen
when the Rename device or Visibility timeout dialogs are visible.

Change-Id: I5e142a5d869a0d5c91c6ace80093d09178d79558
Signed-off-by: jhtop.kim <jhtop.kim@samsung.com>
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java
ca9812a8521fcc483e821fd5a88ec421de0b8f66 12-Jul-2011 Jake Hamby <jhamby@google.com> Upgrade Bluetooth pairing dialogs for ICS.

* Change Bluetooth pairing dialogs to match ICS wireframes.
* Default to numeric soft keyboard for PIN entry, and add checkbox
to allow user to switch to alphanumeric keyboard if necessary.
* Move all Bluetooth advanced settings into action bar menu.
* Toggle visibility by touching "My device" entry in devices list.

Change-Id: Ic2377eb4364f41d215181cb1e3933997c9db9106
/packages/apps/Settings/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java