Catches illegal argument exception thrown by LE advertiser
Test: on device test
Ignore-AOSP-First: nearby_not_in_aosp_yet
Bug: 280387586
Change-Id: Ie05ed9ff57743f0e91ec0571d5a99bebd55a56c8
(cherry picked from commit b1c6f7f6de
)
This commit is contained in:
parent
9f09bea8b0
commit
b08cb038c3
|
@ -102,7 +102,8 @@ public class BleBroadcastProvider extends AdvertiseCallback {
|
|||
+ " is wrong.");
|
||||
advertiseStarted = false;
|
||||
}
|
||||
} catch (NullPointerException | IllegalStateException | SecurityException e) {
|
||||
} catch (NullPointerException | IllegalStateException | SecurityException
|
||||
| IllegalArgumentException e) {
|
||||
Log.w(TAG, "Failed to start advertising.", e);
|
||||
advertiseStarted = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue