summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/deviceinfo
diff options
context:
space:
mode:
authorNick Pelly <npelly@google.com>2009-08-14 18:43:18 -0700
committerNick Pelly <npelly@google.com>2009-08-17 17:09:44 -0700
commitd63c0112251ab4e4e977545368dd703d875012a4 (patch)
tree926b00087de84634c86cb536b9912592c6845bf7 /src/com/android/settings/deviceinfo
parent5eb32e86a244b7cddde109dc4d2d466553c1a4b7 (diff)
downloadpackages_apps_settings-d63c0112251ab4e4e977545368dd703d875012a4.zip
packages_apps_settings-d63c0112251ab4e4e977545368dd703d875012a4.tar.gz
packages_apps_settings-d63c0112251ab4e4e977545368dd703d875012a4.tar.bz2
Bluetooth: Update Settings.apk to match BT API change.
Split BluetoothDevice into BluetoothDevice and BluetoothAdapter. BluetoothAdapter: Represents the local BT adapter. Operations on the local adapter (start a scan, etc). BluetoothDevice: Represents a remote BT device. Operations on remote devices (pair, connect, etc).
Diffstat (limited to 'src/com/android/settings/deviceinfo')
-rw-r--r--src/com/android/settings/deviceinfo/Status.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/settings/deviceinfo/Status.java b/src/com/android/settings/deviceinfo/Status.java
index 1341989..824dbb8 100644
--- a/src/com/android/settings/deviceinfo/Status.java
+++ b/src/com/android/settings/deviceinfo/Status.java
@@ -16,7 +16,7 @@
package com.android.settings.deviceinfo;
-import android.bluetooth.BluetoothDevice;
+import android.bluetooth.BluetoothAdapter;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
@@ -377,7 +377,7 @@ public class Status extends PreferenceActivity {
}
private void setBtStatus() {
- BluetoothDevice bluetooth = (BluetoothDevice) getSystemService(BLUETOOTH_SERVICE);
+ BluetoothAdapter bluetooth = (BluetoothAdapter) getSystemService(BLUETOOTH_SERVICE);
Preference btAddressPref = findPreference(KEY_BT_ADDRESS);
if (bluetooth == null) {