auto import from //branches/cupcake/...@127101

This commit is contained in:
The Android Open Source Project
2009-01-20 14:04:01 -08:00
parent 1152aff9d0
commit 01f172366c
7 changed files with 43 additions and 66 deletions

View File

@@ -181,8 +181,9 @@ public class ConnectSpecificProfilesActivity extends PreferenceActivity
}
}
LocalBluetoothProfileManager.setPreferredProfile(this, mDevice.getAddress(), profile,
checked);
LocalBluetoothProfileManager profileManager = LocalBluetoothProfileManager
.getProfileManager(mManager, profile);
profileManager.setPreferred(mDevice.getAddress(), checked);
}
public void onDeviceAttributesChanged(LocalBluetoothDevice device) {
@@ -252,8 +253,7 @@ public class ConnectSpecificProfilesActivity extends PreferenceActivity
profilePref.setSummary(getProfileSummary(profileManager, profile, address,
connectionStatus, mOnlineMode));
profilePref.setChecked(
LocalBluetoothProfileManager.isPreferredProfile(this, address, profile));
profilePref.setChecked(profileManager.isPreferred(address));
}
private Profile getProfileOf(Preference pref) {