summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2009-09-30 17:46:24 +0100
committerSteve Block <steveblock@google.com>2009-09-30 17:52:29 +0100
commit97557cf41b5f26d4d653a89e6551d8155fda18ed (patch)
treee060c897e303cb9b4f7c7e51bb677a24e9a5e170 /src
parentab1fc3ba06e40b64910406ba848de212401e6c34 (diff)
downloadpackages_apps_Browser-97557cf41b5f26d4d653a89e6551d8155fda18ed.zip
packages_apps_Browser-97557cf41b5f26d4d653a89e6551d8155fda18ed.tar.gz
packages_apps_Browser-97557cf41b5f26d4d653a89e6551d8155fda18ed.tar.bz2
Sets the intial state of the Geolocation permission prompt 'remember' checkbox to checked every time it is shown.
This fixes http://b/issue?id=2156885. Change-Id: I0d0fa17ae6065335bbef3e439b44509711ab98dd
Diffstat (limited to 'src')
-rwxr-xr-xsrc/com/android/browser/GeolocationPermissionsPrompt.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/browser/GeolocationPermissionsPrompt.java b/src/com/android/browser/GeolocationPermissionsPrompt.java
index 61005d5..a21bc3e 100755
--- a/src/com/android/browser/GeolocationPermissionsPrompt.java
+++ b/src/com/android/browser/GeolocationPermissionsPrompt.java
@@ -64,6 +64,8 @@ public class GeolocationPermissionsPrompt extends LinearLayout {
mCallback = callback;
Uri uri = Uri.parse(mOrigin);
setMessage("http".equals(uri.getScheme()) ? mOrigin.substring(7) : mOrigin);
+ // The checkbox should always be intially checked.
+ mRemember.setChecked(true);
showDialog(true);
}