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

Commit 4220a1bd authored by Nick Pelly's avatar Nick Pelly Committed by The Android Open Source Project
Browse files

AI 143740: Don't clear supported profiles in settings app if getRemoteClass returns error.

  Also clean up the error codes returned by the framework, so that the settings app can properly detect an error.
  BUG=1748881

Automated import of CL 143740
parent a81dce21
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -575,9 +575,10 @@ public class LocalBluetoothDevice implements Comparable<LocalBluetoothDevice> {
     */
    private void fetchBtClass() {
        mBtClass = mLocalManager.getBluetoothManager().getRemoteClass(mAddress);
        mProfiles.clear();
        if (mBtClass != BluetoothClass.ERROR) {
            LocalBluetoothProfileManager.fill(mBtClass, mProfiles);
        }
    }

    /**
     * Refreshes the UI for the BT class, including fetching the latest value