diff options
Diffstat (limited to 'src/com/android/bluetooth/btservice/ProfileService.java')
-rwxr-xr-x | src/com/android/bluetooth/btservice/ProfileService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/bluetooth/btservice/ProfileService.java b/src/com/android/bluetooth/btservice/ProfileService.java index 0c021620d..c3802fb60 100755 --- a/src/com/android/bluetooth/btservice/ProfileService.java +++ b/src/com/android/bluetooth/btservice/ProfileService.java @@ -113,6 +113,8 @@ public abstract class ProfileService extends Service { public int onStartCommand(Intent intent, int flags, int startId) { if (DBG) log("onStartCommand()"); + if(mAdapterService == null) + mAdapterService = AdapterService.getAdapterService(); if (mStartError || mAdapter == null) { Log.w(mName, "Stopping profile service: device does not have BT"); doStop(intent); |