Commit d9ff437b2deb9017cf387d1abf0bd0592e00b670
One more patch for tonight.. Google Maps Start in Fullscreen (error in previous push).
| |   |
| diff --git a/usr/palm/applications/com.palm.app.maps/app/assistants/mapshell-assistant.js b/usr/palm/applications/com.palm.app.maps/app/assistants/mapshell-assistant.js |
| index 1d66282..e84c1bf 100644 |
| --- a/usr/palm/applications/com.palm.app.maps/app/assistants/mapshell-assistant.js |
| +++ b/usr/palm/applications/com.palm.app.maps/app/assistants/mapshell-assistant.js |
| @@ -5,6 +5,8 @@ var MapshellAssistant = Class.create({ |
| // when true, card the app else instruct webview to go back |
| this.goBack = false; |
| this.spinnerModel = {spinning: false}; |
| + // fs mode parameter |
| + this.paramFS = true |
| |
| // event handlers |
| this._onWebViewCreatePageH = this._onWebViewCreatePage.bind(this); |
| @@ -85,6 +87,8 @@ var MapshellAssistant = Class.create({ |
| Mojo.Log.info("Maps: mapshell-assistant: activate") |
| Mojo.Log.info("Maps: setting focus on webview widget: %s", this.controller.get('webview')) |
| this.controller.setInitialFocusedElement(this.controller.get('webview')); |
| + //set fs mode |
| + this.controller.enableFullScreenMode(this.paramFS); |
| }, |
| |
| ready: function(event) { |
| @@ -283,6 +287,16 @@ var MapshellAssistant = Class.create({ |
| Mojo.Log.info("Maps: handleCommand do nothing... app should go to card mode"); |
| } |
| } |
| + else if (event.type == Mojo.Event.forward) { |
| + if (this.paramFS) { |
| + this.paramFS = false |
| + this.controller.enableFullScreenMode(this.paramFS); |
| + } |
| + else { |
| + this.paramFS = true |
| + this.controller.enableFullScreenMode(this.paramFS); |
| + } |
| + } |
| }, |
| |
| handleLoadTimedOut: function() { |