Fix display of "Contact sharing" option in Car kit for BT Settings.
Bug: 21879473 Change-Id: I0d2f839c525d2a5179f9ef59ab12a94f1aab9b6f
This commit is contained in:
@@ -53,6 +53,7 @@
|
|||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/profiles_section"
|
android:id="@+id/profiles_section"
|
||||||
|
android:orientation="vertical"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
|
@@ -154,6 +154,7 @@ public final class DeviceProfilesSettings extends DialogFragment implements
|
|||||||
dismiss();
|
dismiss();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
addPreferencesForProfiles();
|
||||||
refresh();
|
refresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -169,16 +170,6 @@ public final class DeviceProfilesSettings extends DialogFragment implements
|
|||||||
mManager.setForegroundActivity(null);
|
mManager.setForegroundActivity(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDevice(CachedBluetoothDevice cachedDevice) {
|
|
||||||
mCachedDevice = cachedDevice;
|
|
||||||
|
|
||||||
if (isResumed()) {
|
|
||||||
mCachedDevice.registerCallback(this);
|
|
||||||
addPreferencesForProfiles();
|
|
||||||
refresh();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void addPreferencesForProfiles() {
|
private void addPreferencesForProfiles() {
|
||||||
mProfileContainer.removeAllViews();
|
mProfileContainer.removeAllViews();
|
||||||
for (LocalBluetoothProfile profile : mCachedDevice.getConnectableProfiles()) {
|
for (LocalBluetoothProfile profile : mCachedDevice.getConnectableProfiles()) {
|
||||||
|
Reference in New Issue
Block a user