summaryrefslogtreecommitdiffstats
path: root/res/layout/geolocation_permissions_prompt.xml
diff options
context:
space:
mode:
authorGrace Kloba <klobag@google.com>2010-04-20 11:07:50 -0700
committerGrace Kloba <klobag@google.com>2010-04-20 11:07:50 -0700
commit50c241e6339c681c2427a57a31a357d35927c2ac (patch)
treef2747ec120a5fa04958f1cca42502e7d6668722d /res/layout/geolocation_permissions_prompt.xml
parent8588d15a7c0b87049469fd80f9c53eb274cd837b (diff)
downloadpackages_apps_Browser-50c241e6339c681c2427a57a31a357d35927c2ac.zip
packages_apps_Browser-50c241e6339c681c2427a57a31a357d35927c2ac.tar.gz
packages_apps_Browser-50c241e6339c681c2427a57a31a357d35927c2ac.tar.bz2
Using ViewStub to defer the inflation of GeolocationPermissionsPrompt until we first show it.
This should shave 5% of Browser start up time. Fix http://b/issue?id=2604295
Diffstat (limited to 'res/layout/geolocation_permissions_prompt.xml')
-rwxr-xr-xres/layout/geolocation_permissions_prompt.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/res/layout/geolocation_permissions_prompt.xml b/res/layout/geolocation_permissions_prompt.xml
index cdb25d2..babde3a 100755
--- a/res/layout/geolocation_permissions_prompt.xml
+++ b/res/layout/geolocation_permissions_prompt.xml
@@ -16,7 +16,8 @@
This is the layout for the Geolocation permissions prompt.
-->
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<com.android.browser.GeolocationPermissionsPrompt
+ xmlns:android="http://schemas.android.com/apk/res/android"
android:fitsSystemWindows="true"
android:layout_width="match_parent"
android:layout_height="wrap_content">
@@ -87,4 +88,4 @@
</LinearLayout>
</LinearLayout>
-</LinearLayout>
+</com.android.browser.GeolocationPermissionsPrompt>