From 97557cf41b5f26d4d653a89e6551d8155fda18ed Mon Sep 17 00:00:00 2001 From: Steve Block Date: Wed, 30 Sep 2009 17:46:24 +0100 Subject: 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 --- src/com/android/browser/GeolocationPermissionsPrompt.java | 2 ++ 1 file changed, 2 insertions(+) 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); } -- cgit v1.1