Bluetooth settings revamp

Added a separate scanning screen.
UI changes to not require long-press options.
Needs TODOs to be filled by BT team.

Bug: 3038327
This commit is contained in:
Amith Yamasani
2010-10-26 13:44:33 -07:00
parent 4a5f889f80
commit 48e9000283
19 changed files with 637 additions and 187 deletions

View File

@@ -47,7 +47,7 @@ public class LocalBluetoothManager {
private static final String SHARED_PREFERENCES_NAME = "bluetooth_settings";
/** Singleton instance. */
private static LocalBluetoothManager INSTANCE;
private static LocalBluetoothManager sInstance;
private boolean mInitialized;
private Context mContext;
@@ -87,17 +87,17 @@ public class LocalBluetoothManager {
public static LocalBluetoothManager getInstance(Context context) {
synchronized (LocalBluetoothManager.class) {
if (INSTANCE == null) {
INSTANCE = new LocalBluetoothManager();
if (sInstance == null) {
sInstance = new LocalBluetoothManager();
}
if (!INSTANCE.init(context)) {
if (!sInstance.init(context)) {
return null;
}
LocalBluetoothProfileManager.init(INSTANCE);
LocalBluetoothProfileManager.init(sInstance);
return INSTANCE;
return sInstance;
}
}