Merge "Fix "NetworkCallback was not registered" crash" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
92538a9dbc
@@ -599,6 +599,7 @@ class GnssNetworkConnectivityHandler {
|
|||||||
SUPL_NETWORK_REQUEST_TIMEOUT_MILLIS);
|
SUPL_NETWORK_REQUEST_TIMEOUT_MILLIS);
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
Log.e(TAG, "Failed to request network.", e);
|
Log.e(TAG, "Failed to request network.", e);
|
||||||
|
mSuplConnectivityCallback = null;
|
||||||
handleReleaseSuplConnection(GPS_AGPS_DATA_CONN_FAILED);
|
handleReleaseSuplConnection(GPS_AGPS_DATA_CONN_FAILED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user