diff --git a/src/com/android/contacts/quickcontact/QuickContactActivity.java b/src/com/android/contacts/quickcontact/QuickContactActivity.java index 2fc193b20ab693708911aa001c6999fdd7a30672..9c2fcc591b2104426a75f933f12a0b07e5fb43e6 100644 --- a/src/com/android/contacts/quickcontact/QuickContactActivity.java +++ b/src/com/android/contacts/quickcontact/QuickContactActivity.java @@ -1726,7 +1726,7 @@ public class QuickContactActivity extends ContactsActivity { } primaryContentDescription.append(header); alternateIntent = - StructuredPostalUtils.getViewPostalAddressDirectionsIntent(postalAddress); + StructuredPostalUtils.getViewPostalAddressIntent(postalAddress); alternateIntent.putExtra(EXTRA_ACTION_TYPE, ActionType.DIRECTIONS); alternateIcon = res.getDrawable(R.drawable.quantum_ic_directions_vd_theme_24); alternateContentDescription.append(res.getString( diff --git a/src/com/android/contacts/util/StructuredPostalUtils.java b/src/com/android/contacts/util/StructuredPostalUtils.java index 6e46176ca8986d6e7be6199a3b90aa19291223f3..59d38ea43505e2f5e77793050d87d8a871a35aa4 100644 --- a/src/com/android/contacts/util/StructuredPostalUtils.java +++ b/src/com/android/contacts/util/StructuredPostalUtils.java @@ -30,12 +30,4 @@ public class StructuredPostalUtils { public static Uri getPostalAddressUri(String postalAddress) { return Uri.parse("geo:0,0?q=" + Uri.encode(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)); - } }