]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/platform-packages-services-car.git/commit
Add cleanup upon disconnect of CarService
authorrleix <rayx.lei@intel.com>
Thu, 18 Oct 2018 08:36:56 +0000 (16:36 +0800)
committerGuobin Zhang <guobin.zhang@intel.com>
Thu, 29 Nov 2018 03:51:08 +0000 (03:51 +0000)
commit458997325a5bbc513163c13be681f9d0a8ff760f
treefe69936edcc4556ad39dc8829fda36513bd73989
parente9312bd9a70b813309e7ec1af724e0b4316dd478
Add cleanup upon disconnect of CarService

Cleanup in client side is needed upon reboot of CarService.
Otherwise the client will crash due to below error:
IllegalStateException("Client callback is already configured.")

Test: 1. Launch the VmsSubscriberClientSample app
Test: 2. Crash the CarService with adb shell (kill com.android.car)
Test: 3. The sample app will crash

bug: 120159496

Change-Id: Iba5c8da7533a2b77042fa095a5e6f2c03f46785b
Signed-off-by: Lei,RayX <rayx.lei@intel.com>
Signed-off-by: Guobin Zhang <guobin.zhang@intel.com>
car-lib/src/android/car/vms/VmsSubscriberManager.java
tests/VmsSubscriberClientSample/src/com/google/android/car/vms/subscriber/VmsSubscriberClientSampleActivity.java