Skip to content
Browse files

Merge pull request #47 from blackberry-webworks/next-direction-portrait

Pull Req: Replace DIRECTION_PORTRAIT to DIRECTION_NORTH
  • Loading branch information...
2 parents e491ea1 + 894ee8d commit 93368b79377e34fa4bb3a1c51642d528e9a2cdce @dmateescu dmateescu committed
Showing with 14 additions and 14 deletions.
  1. +14 −14 framework/src/blackberry/web/widget/Widget.java
View
28 framework/src/blackberry/web/widget/Widget.java
@@ -53,18 +53,18 @@ public Widget( WidgetConfig wConfig, String locationURI ) {
initialize();
_locationURI = locationURI;
- // Set our orientation
- WidgetConfigImpl configImpl = (WidgetConfigImpl) _wConfig;
- if (configImpl.isOrientationDefined()) {
- int direction;
- if (configImpl.getOrientation() == 0) {
- direction = net.rim.device.api.system.Display.DIRECTION_PORTRAIT;
- } else {
- direction = net.rim.device.api.system.Display.DIRECTION_LANDSCAPE;
- }
- net.rim.device.api.ui.Ui.getUiEngineInstance().setAcceptableDirections(direction);
- }
-
+ // Set our orientation
+ WidgetConfigImpl configImpl = (WidgetConfigImpl) _wConfig;
+ if( configImpl.isOrientationDefined() ) {
+ int direction;
+ if( configImpl.getOrientation() == 0 ) {
+ direction = net.rim.device.api.system.Display.DIRECTION_NORTH;
+ } else {
+ direction = net.rim.device.api.system.Display.DIRECTION_LANDSCAPE;
+ }
+ net.rim.device.api.ui.Ui.getUiEngineInstance().setAcceptableDirections( direction );
+ }
+
// Create PageManager
PageManager pageManager = new PageManager( this, (WidgetConfigImpl) _wConfig );
@@ -143,9 +143,9 @@ public static void main( String[] args ) {
waitForStartupComplete();
}
Widget widget = makeWidget( args, wConfig );
-
+
widget.enterEventDispatcher();
-
+
MemoryMaid mm = MemoryMaid.getInstance();
if( mm != null ) {
mm.stop();

0 comments on commit 93368b7

Please sign in to comment.
Something went wrong with that request. Please try again.