summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/GeolocationPermissionsPrompt.java
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2009-09-29 13:14:41 +0100
committerSteve Block <steveblock@google.com>2009-09-29 19:10:44 +0100
commit8844d19f6879802ba02463df6cf2b8bfbaf68b0a (patch)
tree89040a6aaefe6acabc61ee36b231b3ccff6b6f11 /src/com/android/browser/GeolocationPermissionsPrompt.java
parentc46f828c17e8f171aa62910cba7ba6af6f7302ae (diff)
downloadpackages_apps_browser-8844d19f6879802ba02463df6cf2b8bfbaf68b0a.zip
packages_apps_browser-8844d19f6879802ba02463df6cf2b8bfbaf68b0a.tar.gz
packages_apps_browser-8844d19f6879802ba02463df6cf2b8bfbaf68b0a.tar.bz2
Makes Geolocation permissions prompt pretty.
Change-Id: I237fc0845de2297babc7da448a2199c5344e2e83
Diffstat (limited to 'src/com/android/browser/GeolocationPermissionsPrompt.java')
-rwxr-xr-xsrc/com/android/browser/GeolocationPermissionsPrompt.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/browser/GeolocationPermissionsPrompt.java b/src/com/android/browser/GeolocationPermissionsPrompt.java
index 16737fe..61005d5 100755
--- a/src/com/android/browser/GeolocationPermissionsPrompt.java
+++ b/src/com/android/browser/GeolocationPermissionsPrompt.java
@@ -18,6 +18,7 @@ package com.android.browser;
import android.content.Context;
import android.graphics.drawable.Drawable;
+import android.net.Uri;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
@@ -61,7 +62,8 @@ public class GeolocationPermissionsPrompt extends LinearLayout {
public void show(String origin, GeolocationPermissions.Callback callback) {
mOrigin = origin;
mCallback = callback;
- setMessage(mOrigin);
+ Uri uri = Uri.parse(mOrigin);
+ setMessage("http".equals(uri.getScheme()) ? mOrigin.substring(7) : mOrigin);
showDialog(true);
}