Catch the RuntimeException for stopScan()
Some RuntimeExceptions will be thrown across the binder so we need to
catch RuntimeException even we already catch the RemoteException.
This is a clean cherry-pick from
https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/3725821
Bug:73750871
Test: Unit Test
Change-Id: Ib72e5ce0f20fbbe913b054314ed3942862c0ab95
Merged-in: Ib72e5ce0f20fbbe913b054314ed3942862c0ab95
(cherry picked from commit 7ea1a49c0a)
This commit is contained in:
@@ -115,6 +115,8 @@ public class NetworkScan {
|
||||
telephony.stopNetworkScan(mSubId, mScanId);
|
||||
} catch (RemoteException ex) {
|
||||
Rlog.e(TAG, "stopNetworkScan RemoteException", ex);
|
||||
} catch (RuntimeException ex) {
|
||||
Rlog.e(TAG, "stopNetworkScan RuntimeException", ex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user