Fixing the 1.5 Storage. Got inheritance wrong in this case

This commit is contained in:
Joe Bowser
2010-01-04 11:53:26 -08:00
parent 5b5c2590f9
commit d81f53465f
2 changed files with 16 additions and 8 deletions
+3 -2
View File
@@ -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);
}