mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-24 06:59:27 -05:00
082bc48c32
https://review.lineageos.org/q/topic:P_asb_2022-05 https://review.lineageos.org/q/topic:P_asb_2022-06 https://review.lineageos.org/q/topic:P_asb_2022-07 https://review.lineageos.org/q/topic:P_asb_2022-08 https://review.lineageos.org/q/topic:P_asb_2022-09 https://review.lineageos.org/q/topic:P_asb_2022-10 https://review.lineageos.org/q/topic:P_asb_2022-11 https://review.lineageos.org/q/topic:P_asb_2022-12 https://review.lineageos.org/q/topic:P_asb_2023-01 https://review.lineageos.org/q/topic:P_asb_2023-02 https://review.lineageos.org/q/topic:P_asb_2023-03 https://review.lineageos.org/q/topic:P_asb_2023-04 https://review.lineageos.org/q/topic:P_asb_2023-05 https://review.lineageos.org/q/topic:P_asb_2023-06 https://review.lineageos.org/q/topic:P_asb_2023-07 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/361250 https://review.lineageos.org/q/topic:P_asb_2023-08 accounted for via manifest change: https://review.lineageos.org/c/LineageOS/android_external_freetype/+/364606 accounted for via patches: https://review.lineageos.org/c/LineageOS/android_system_ca-certificates/+/365328 https://review.lineageos.org/q/topic:P_asb_2023-09 https://review.lineageos.org/q/topic:P_asb_2023-10 https://review.lineageos.org/q/topic:P_asb_2023-11 accounted for via patches: https://review.lineageos.org/c/LineageOS/android_system_ca-certificates/+/374916 https://review.lineageos.org/q/topic:P_asb_2023-12 https://review.lineageos.org/q/topic:P_asb_2024-01 https://review.lineageos.org/q/topic:P_asb_2024-02 https://review.lineageos.org/q/topic:P_asb_2024-03 https://review.lineageos.org/q/topic:P_asb_2024-04 Signed-off-by: Tavi <tavi@divested.dev>
46 lines
2.0 KiB
Diff
46 lines
2.0 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: David Christie <dnchrist@google.com>
|
|
Date: Fri, 11 Mar 2022 01:13:31 +0000
|
|
Subject: [PATCH] Update GeofenceHardwareRequestParcelable to match
|
|
parcel/unparcel format.
|
|
|
|
Test: manual
|
|
Bug: 216631962
|
|
|
|
Change-Id: I3d6d1be9d6c312fe0bf98f600ff8fc9c617f8ec3
|
|
(cherry picked from commit 3e1ffdb29417f4fb994587a013fa56c83e157f6f)
|
|
Merged-In: I3d6d1be9d6c312fe0bf98f600ff8fc9c617f8ec3
|
|
---
|
|
.../location/GeofenceHardwareRequestParcelable.java | 9 +++------
|
|
1 file changed, 3 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/core/java/android/hardware/location/GeofenceHardwareRequestParcelable.java b/core/java/android/hardware/location/GeofenceHardwareRequestParcelable.java
|
|
index d3311f5c8c5e..fc27d1de6372 100644
|
|
--- a/core/java/android/hardware/location/GeofenceHardwareRequestParcelable.java
|
|
+++ b/core/java/android/hardware/location/GeofenceHardwareRequestParcelable.java
|
|
@@ -16,9 +16,9 @@
|
|
|
|
package android.hardware.location;
|
|
|
|
+import android.os.BadParcelableException;
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
-import android.util.Log;
|
|
|
|
/**
|
|
* Geofence Hardware Request used for internal location services communication.
|
|
@@ -139,11 +139,8 @@ public final class GeofenceHardwareRequestParcelable implements Parcelable {
|
|
@Override
|
|
public GeofenceHardwareRequestParcelable createFromParcel(Parcel parcel) {
|
|
int geofenceType = parcel.readInt();
|
|
- if(geofenceType != GeofenceHardwareRequest.GEOFENCE_TYPE_CIRCLE) {
|
|
- Log.e(
|
|
- "GeofenceHardwareRequest",
|
|
- String.format("Invalid Geofence type: %d", geofenceType));
|
|
- return null;
|
|
+ if (geofenceType != GeofenceHardwareRequest.GEOFENCE_TYPE_CIRCLE) {
|
|
+ throw new BadParcelableException("Invalid Geofence type: " + geofenceType);
|
|
}
|
|
|
|
GeofenceHardwareRequest request = GeofenceHardwareRequest.createCircularGeofence(
|