Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c1481e5 authored by Haijie Hong's avatar Haijie Hong
Browse files

Exit device details page when bond state is BOND_NONE

BUG: 356222570
Test: local test
Flag: EXEMPT minor bug fix
Change-Id: I1485aa78eb1323eefabf1eb023e24459faed51a6
parent 75e2dc4b
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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 =