We should call setAdapterService(this) inside onCreate() instead of
inside BleOnProcessStart(). The former is more robust.
Change-Id: Ide1d98dfdde148645f3efe246e6fbf95659195a7
(cherry picked from commit
39d7556b76036e02b87a6c4288a9a090e2bd6686)
registerReceiver(mAlarmBroadcastReceiver, new IntentFilter(ACTION_ALARM_WAKEUP));
mProfileObserver = new ProfileObserver(getApplicationContext(), this, new Handler());
mProfileObserver.start();
+
+ setAdapterService(this);
}
@Override
// Ignore.
}
- //FIXME: Set static instance here???
- setAdapterService(this);
-
//Start Gatt service
setGattProfileServiceState(supportedProfileServices,BluetoothAdapter.STATE_ON);
}