Exit device details page when bond state is BOND_NONE

BUG: 356222570
Test: local test
Flag: EXEMPT minor bug fix
Change-Id: I1485aa78eb1323eefabf1eb023e24459faed51a6
This commit is contained in:
Haijie Hong
2024-10-28 16:30:59 +08:00
parent 75e2dc4b21
commit 6c1481e5e7

View File

@@ -123,6 +123,14 @@ public class BluetoothDeviceDetailsFragment extends RestrictedDashboardFragment
}
}
}
@Override
public void onDeviceBondStateChanged(
@NonNull CachedBluetoothDevice cachedDevice, int bondState) {
if (cachedDevice.equals(mCachedDevice)) {
finishFragmentIfNecessary();
}
}
};
private final BluetoothAdapter.OnMetadataChangedListener mExtraControlMetadataListener =