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:
Angela Wang
2023-11-22 12:39:17 +00:00
parent 4ee6d84eb4
commit 3e9f1ff659
13 changed files with 905 additions and 13 deletions

View File

@@ -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();