New hearing device pairing page (1/2)
Rewrite a new hearing device pairing page with update UI for "See more devices". Bug: 307473972 Test: atest HearingDevicePairingFragmentTest Test: flip the flag com.android.settings.flags.new_hearing_device_pairing_page && atest HearingAidPairingDialogFragmentTest AddDevicePreferenceControllerTest Change-Id: Ic60601905e3d0d7d7c5b1ef9733652118a211f1d
This commit is contained in:
@@ -156,7 +156,7 @@ public final class BluetoothDevicePreference extends GearPreference {
|
||||
return R.layout.preference_widget_gear;
|
||||
}
|
||||
|
||||
CachedBluetoothDevice getCachedDevice() {
|
||||
public CachedBluetoothDevice getCachedDevice() {
|
||||
return mCachedDevice;
|
||||
}
|
||||
|
||||
@@ -362,7 +362,11 @@ public final class BluetoothDevicePreference extends GearPreference {
|
||||
}
|
||||
}
|
||||
|
||||
void onClicked() {
|
||||
/**
|
||||
* Performs different actions according to the device connected and bonded state after
|
||||
* clicking on the preference.
|
||||
*/
|
||||
public void onClicked() {
|
||||
Context context = getContext();
|
||||
int bondState = mCachedDevice.getBondState();
|
||||
|
||||
|
Reference in New Issue
Block a user