From 503640f6b56916330bfd8b2f3d6aaa2ad283d253 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Wed, 25 Jan 2012 11:40:46 -0800 Subject: [PATCH] Removing the classic render feature, since it's not working properly --- framework/res/xml/phonegap.xml | 2 +- framework/src/com/phonegap/DroidGap.java | 21 +-------------------- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/framework/res/xml/phonegap.xml b/framework/res/xml/phonegap.xml index f57d9ab5..ad6f3291 100644 --- a/framework/res/xml/phonegap.xml +++ b/framework/res/xml/phonegap.xml @@ -2,5 +2,5 @@ - + diff --git a/framework/src/com/phonegap/DroidGap.java b/framework/src/com/phonegap/DroidGap.java index edfb4d34..567f5f07 100755 --- a/framework/src/com/phonegap/DroidGap.java +++ b/framework/src/com/phonegap/DroidGap.java @@ -378,19 +378,7 @@ public class DroidGap extends PhonegapActivity { this.appView.setWebChromeClient(new CordovaChromeClient(DroidGap.this)); this.setWebViewClient(this.appView, new CordovaWebViewClient(this)); - //14 is Ice Cream Sandwich! - if(android.os.Build.VERSION.SDK_INT < 14 && this.classicRender) - { - //This hack fixes legacy PhoneGap apps - //We should be using real pixels, not pretend pixels - final float scale = getResources().getDisplayMetrics().density; - int initialScale = (int) (scale * 100); - this.appView.setInitialScale(initialScale); - } - else - { - this.appView.setInitialScale(0); - } + this.appView.setInitialScale(0); this.appView.setVerticalScrollBarEnabled(false); this.appView.requestFocusFromTouch(); @@ -1286,13 +1274,6 @@ public class DroidGap extends PhonegapActivity { LOG.setLogLevel(level); } } - else if(strNode.equals("render")) { - String enabled = xml.getAttributeValue(null, "enabled"); - if(enabled != null) - { - this.classicRender = enabled.equals("true"); - } - } else if (strNode.equals("preference")) { String name = xml.getAttributeValue(null, "name"); String value = xml.getAttributeValue(null, "value");