mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-23 00:00:09 +08:00
Fixing the 1.5 Storage. Got inheritance wrong in this case
This commit is contained in:
@@ -94,7 +94,6 @@ public class DroidGap extends Activity {
|
||||
else
|
||||
{
|
||||
appView.setWebChromeClient(new GapClient(this));
|
||||
cupcakeStorage = new Storage(appView);
|
||||
}
|
||||
|
||||
appView.setInitialScale(100);
|
||||
@@ -113,7 +112,9 @@ public class DroidGap extends Activity {
|
||||
|
||||
/* Bind the appView object to the gap class methods */
|
||||
bindBrowser(appView);
|
||||
|
||||
if(cupcakeStorage != null)
|
||||
cupcakeStorage.setStorage(appPackage);
|
||||
|
||||
root.addView(appView);
|
||||
setContentView(root);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user