Skip to content

Commit

Permalink
Don't show mobile versions of web sites zoomed out under ICS.
Browse files Browse the repository at this point in the history
  • Loading branch information
gebner authored and talklittle committed Dec 31, 2011
1 parent bfe3714 commit 3cfe8e5
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -55,14 +55,14 @@ public void onCreate(Bundle savedInstanceState) {
settings.setJavaScriptEnabled(true);
settings.setUseWideViewPort(true);
settings.setDomStorageEnabled(true);
settings.setLoadWithOverviewMode(true);

// HACK: set background color directly for android 2.0
if (Util.isLightTheme(mSettings.getTheme()))
webview.setBackgroundResource(R.color.white);

// use transparent background while loading
webview.setBackgroundColor(0);
webview.setInitialScale(50);
webview.setWebViewClient(new WebViewClient() {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
Expand Down

0 comments on commit 3cfe8e5

Please sign in to comment.