We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04787d8 commit fdb756aCopy full SHA for fdb756a
1 file changed
location/java/android/location/GpsNavigationMessage.java
@@ -262,12 +262,8 @@ public GpsNavigationMessage createFromParcel(Parcel parcel) {
262
parcel.readByteArray(data);
263
navigationMessage.setData(data);
264
265
- if (parcel.dataAvail() >= Integer.SIZE) {
266
- int status = parcel.readInt();
267
- navigationMessage.setStatus((short) status);
268
- } else {
269
- navigationMessage.setStatus(STATUS_UNKNOWN);
270
- }
+ int status = parcel.readInt();
+ navigationMessage.setStatus((short) status);
271
272
return navigationMessage;
273
}
0 commit comments