Return 0 instead of throwing RuntimeException from getSmsCapacityOnIcc

Test: none
Bug: 170704921
Change-Id: I7d6985ab1aaf830c4560195189d01a661d478dbe
This commit is contained in:
Amit Mahajan 2021-03-17 15:35:37 -07:00
parent 2ab1cc0fac
commit c2f06b0e63

View File

@ -2127,7 +2127,7 @@ public final class SmsManager {
ret = iccISms.getSmsCapacityOnIccForSubscriber(getSubscriptionId());
}
} catch (RemoteException ex) {
throw new RuntimeException(ex);
Log.e(TAG, "getSmsCapacityOnIcc() RemoteException", ex);
}
return ret;
}