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:
Jayden Kim 2023-06-27 03:51:37 +00:00 committed by Matt Lee
parent 9f09bea8b0
commit b08cb038c3
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}