Merge "Re-throw system server exception." am: 112cd8df86 am: c76d1a4c26 am: 08f03dc59c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1608233 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ib5c9d8adbe377432df0710d8ab473683f6866bd7
This commit is contained in:
@@ -338,8 +338,7 @@ public final class SystemClock {
|
|||||||
try {
|
try {
|
||||||
time = mMgr.getGnssTimeMillis();
|
time = mMgr.getGnssTimeMillis();
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
e.rethrowFromSystemServer();
|
throw e.rethrowFromSystemServer();
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
if (time == null) {
|
if (time == null) {
|
||||||
throw new DateTimeException("Gnss based time is not available.");
|
throw new DateTimeException("Gnss based time is not available.");
|
||||||
|
|||||||
Reference in New Issue
Block a user