am c7423763: Merge branch \'eclair-plus-aosp\' of ssh://android-git.corp.google.com:29418/platform/packages/apps/Settings into eclair-mr2-plus-aosp

Merge commit 'c74237633f0e5a3c4d1c59058e45b6e056e840ea'

* commit 'c74237633f0e5a3c4d1c59058e45b6e056e840ea':
  Update application code for BluetoothAdapter.getDefaultAdapter().
This commit is contained in:
Nick Pelly
2009-10-12 12:38:35 -07:00
committed by Android Git Automerger
2 changed files with 2 additions and 2 deletions

View File

@@ -92,7 +92,7 @@ public class LocalBluetoothManager {
// This will be around as long as this process is
mContext = context.getApplicationContext();
mAdapter = (BluetoothAdapter) context.getSystemService(Context.BLUETOOTH_SERVICE);
mAdapter = BluetoothAdapter.getDefaultAdapter();
if (mAdapter == null) {
return false;
}

View File

@@ -377,7 +377,7 @@ public class Status extends PreferenceActivity {
}
private void setBtStatus() {
BluetoothAdapter bluetooth = (BluetoothAdapter) getSystemService(BLUETOOTH_SERVICE);
BluetoothAdapter bluetooth = BluetoothAdapter.getDefaultAdapter();
Preference btAddressPref = findPreference(KEY_BT_ADDRESS);
if (bluetooth == null) {