Removing the classic render feature, since it's not working properly

This commit is contained in:
Joe Bowser 2012-01-25 11:40:46 -08:00
parent d28a60ed97
commit 503640f6b5
2 changed files with 2 additions and 21 deletions

View File

@ -2,5 +2,5 @@
<phonegap>
<access origin="http://127.0.0.1*"/>
<log level="DEBUG"/>
<render legacy="true" />
<preference name="classicRender" value="true" />
</phonegap>

View File

@ -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");