From 0999725c184ed19b1a986f3125d825e53c79b274 Mon Sep 17 00:00:00 2001 From: Haijie Hong Date: Mon, 13 Jan 2025 20:01:17 +0800 Subject: [PATCH] Add hint for device rename editbox BUG: 386721884 Test: local tested Flag: EXEMPT minor fix Change-Id: I0722d5e30b112c10c53f21e6b08543b2719bfa0f --- .../android/settings/bluetooth/BluetoothNameDialogFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java b/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java index c5b29f3e7e0..196219de247 100644 --- a/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java +++ b/src/com/android/settings/bluetooth/BluetoothNameDialogFragment.java @@ -117,6 +117,7 @@ abstract class BluetoothNameDialogFragment extends InstrumentedDialogFragment .getSystemService(Context.LAYOUT_INFLATER_SERVICE); View view = layoutInflater.inflate(R.layout.dialog_edittext, null); mDeviceNameView = (EditText) view.findViewById(R.id.edittext); + mDeviceNameView.setHint(R.string.bluetooth_device_name); mDeviceNameView.setFilters(new InputFilter[] { new BluetoothLengthDeviceNameFilter() });