mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-28 00:49:37 -05:00
da63c9e571
7408144e1b
> extend Network/Sensors permission handling for legacy apps not targeting Android 6 > or above (API 23) to resolve a UI issue where the user choosing to grant the > Network/Sensors permissions via the legacy permission review interface doesn't > appear in the Settings app info page22d32cb61b
suppresses https://github.com/Divested-Mobile/DivestOS-Build/discussions/11266f406b979
3f69205d06
nice to have Signed-off-by: Tad <tad@spotco.us>
26 lines
1.2 KiB
Diff
26 lines
1.2 KiB
Diff
From 3f69205d062a4f7dd241e6262acd77f45a68253a Mon Sep 17 00:00:00 2001
|
|
From: flawedworld <flawedworld@flawed.world>
|
|
Date: Wed, 25 May 2022 23:47:12 +0100
|
|
Subject: [PATCH] Use common intent for directions instead of Google Maps URL
|
|
|
|
---
|
|
src/com/android/contacts/util/StructuredPostalUtils.java | 6 +-----
|
|
1 file changed, 1 insertion(+), 5 deletions(-)
|
|
|
|
diff --git a/src/com/android/contacts/util/StructuredPostalUtils.java b/src/com/android/contacts/util/StructuredPostalUtils.java
|
|
index 6e46176ca8..f5f454948e 100644
|
|
--- a/src/com/android/contacts/util/StructuredPostalUtils.java
|
|
+++ b/src/com/android/contacts/util/StructuredPostalUtils.java
|
|
@@ -32,10 +32,6 @@ public static Uri getPostalAddressUri(String postalAddress) {
|
|
}
|
|
|
|
public static Intent getViewPostalAddressDirectionsIntent(String postalAddress) {
|
|
- return new Intent(Intent.ACTION_VIEW, getPostalAddressDirectionsUri(postalAddress));
|
|
- }
|
|
-
|
|
- public static Uri getPostalAddressDirectionsUri(String postalAddress) {
|
|
- return Uri.parse("https://maps.google.com/maps?daddr=" + Uri.encode(postalAddress));
|
|
+ return new Intent(Intent.ACTION_VIEW, getPostalAddressUri(postalAddress));
|
|
}
|
|
}
|