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

Commit 4044d6cd authored by Sanket Padawe's avatar Sanket Padawe Committed by Android (Google) Code Review
Browse files

Merge "Fix display of "Contact sharing" option in Car kit for BT Settings." into mnc-dev

parents d55ddc33 53e74f51
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -53,6 +53,7 @@

    <LinearLayout
        android:id="@+id/profiles_section"
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />

+1 −10
Original line number Diff line number Diff line
@@ -154,6 +154,7 @@ public final class DeviceProfilesSettings extends DialogFragment implements
                dismiss();
                return;
            }
            addPreferencesForProfiles();
            refresh();
        }
    }
@@ -169,16 +170,6 @@ public final class DeviceProfilesSettings extends DialogFragment implements
        mManager.setForegroundActivity(null);
    }

    public void setDevice(CachedBluetoothDevice cachedDevice) {
        mCachedDevice = cachedDevice;

        if (isResumed()) {
            mCachedDevice.registerCallback(this);
            addPreferencesForProfiles();
            refresh();
        }
    }

    private void addPreferencesForProfiles() {
        mProfileContainer.removeAllViews();
        for (LocalBluetoothProfile profile : mCachedDevice.getConnectableProfiles()) {