Replaced Webview with TextView in Accessbility Settings
Removed the webview used for the font preview and replaced
it with a textview. Removes the overhead of using webview
for just a small preview in settings.
Change-Id: I6eb7f3dd67756b220e8f7ff33eab5cc7429d3f36
diff --git a/res/layout/webview_preview.xml b/res/layout/webview_preview.xml
index 2137e9b..b86de2b 100644
--- a/res/layout/webview_preview.xml
+++ b/res/layout/webview_preview.xml
@@ -25,7 +25,6 @@
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
- android:minWidth="@*android:dimen/preference_icon_minWidth"
android:orientation="horizontal">
<ImageView
android:id="@android:id/icon"
@@ -72,13 +71,15 @@
android:gravity="center"
android:orientation="vertical" />
- <android.webkit.WebView
- android:id="@+id/webview"
+ <TextView
+ android:id="@+id/text_size_preview"
android:layout_width="match_parent"
android:layout_height="180dp"
android:layout_below="@android:id/summary"
android:layout_toRightOf="@android:id/widget_frame"
- android:layout_alignParentRight="true" />
+ android:layout_alignParentRight="true"
+ android:textColor="@color/black"
+ android:background="@color/white"/>
</RelativeLayout>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index fb1ad41..5db42c3 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -502,14 +502,8 @@
<string name="pref_security_accept_cookies">Accept cookies</string>
<!-- Settings summary -->
<string name="pref_security_accept_cookies_summary">Allow sites to save and read cookie data</string>
- <!-- Settings text size options; appear in Text size dialog box [CHAR LIMIT=30] -->
- <string-array name="pref_text_size_choices">
- <item>Tiny</item>
- <item>Small</item>
- <item>Normal</item>
- <item>Large</item>
- <item>Huge</item>
- </string-array>
+ <!-- Settings text size options - displays sample font size in settings -->
+ <string name="pref_sample_font_size">Drag the slider to adjust the font size to set the desired comfortable reading size.</string>
<!-- Label for minimum font size [CHAR LIMIT=30] -->
<string name="pref_min_font_size">Minimum font size</string>
<!-- Label for the current minimum font size value [CHAR LIMIT=6] -->