Merge "Fix display of "Contact sharing" option in Car kit for BT Settings." into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4044d6cdd6
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user