am a8c6cb5a
: am 4044d6cd
: Merge "Fix display of "Contact sharing" option in Car kit for BT Settings." into mnc-dev
* commit 'a8c6cb5a72974118adb7f39acb3a906a63541dac': Fix display of "Contact sharing" option in Car kit for BT Settings.
This commit is contained in:
@@ -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