Loading android/app/src/com/android/bluetooth/gatt/GattService.java +14 −0 Original line number Original line Diff line number Diff line Loading @@ -305,6 +305,19 @@ public class GattService extends ProfileService { } } } } class ClientDeathRecipient implements IBinder.DeathRecipient { int mAppIf; public ClientDeathRecipient(int appIf) { mAppIf = appIf; } public void binderDied() { if (DBG) Log.d(TAG, "Binder is dead - unregistering client (" + mAppIf + ")!"); unregisterClient(mAppIf); } } /** /** * Handlers for incoming service calls * Handlers for incoming service calls */ */ Loading Loading @@ -675,6 +688,7 @@ public class GattService extends ProfileService { if (app != null) { if (app != null) { if (status == 0) { if (status == 0) { app.id = clientIf; app.id = clientIf; app.linkToDeath(new ClientDeathRecipient(clientIf)); } else { } else { mClientMap.remove(uuid); mClientMap.remove(uuid); } } Loading Loading
android/app/src/com/android/bluetooth/gatt/GattService.java +14 −0 Original line number Original line Diff line number Diff line Loading @@ -305,6 +305,19 @@ public class GattService extends ProfileService { } } } } class ClientDeathRecipient implements IBinder.DeathRecipient { int mAppIf; public ClientDeathRecipient(int appIf) { mAppIf = appIf; } public void binderDied() { if (DBG) Log.d(TAG, "Binder is dead - unregistering client (" + mAppIf + ")!"); unregisterClient(mAppIf); } } /** /** * Handlers for incoming service calls * Handlers for incoming service calls */ */ Loading Loading @@ -675,6 +688,7 @@ public class GattService extends ProfileService { if (app != null) { if (app != null) { if (status == 0) { if (status == 0) { app.id = clientIf; app.id = clientIf; app.linkToDeath(new ClientDeathRecipient(clientIf)); } else { } else { mClientMap.remove(uuid); mClientMap.remove(uuid); } } Loading