mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
Removing the classic render feature, since it's not working properly
This commit is contained in:
parent
d28a60ed97
commit
503640f6b5
@ -2,5 +2,5 @@
|
||||
<phonegap>
|
||||
<access origin="http://127.0.0.1*"/>
|
||||
<log level="DEBUG"/>
|
||||
<render legacy="true" />
|
||||
<preference name="classicRender" value="true" />
|
||||
</phonegap>
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user