equal
deleted
inserted
replaced
134 |
134 |
135 iCurrentState = newstate; |
135 iCurrentState = newstate; |
136 if ( DataMgr()->IsUpdate() ) |
136 if ( DataMgr()->IsUpdate() ) |
137 { |
137 { |
138 DataMgr()->SetUpdate( EFalse ); |
138 DataMgr()->SetUpdate( EFalse ); |
139 CSplitItutUiLayout* itutLayout = |
139 |
140 static_cast<CSplitItutUiLayout*>( LayoutContext()->UiLayout() ); |
140 CSplitItutUiLayout* itutLayout = |
141 itutLayout->SizeChanged( NULL ); |
141 static_cast<CSplitItutUiLayout*>( LayoutContext()->UiLayout()); |
|
142 // Get the screen rect |
|
143 TRect screenRect = DataMgr()->screenSize(); |
|
144 // If the screen is in portrait mode |
|
145 if ( screenRect.Width() < screenRect.Height()) |
|
146 { |
|
147 itutLayout->SizeChanged( NULL ); |
|
148 } |
142 |
149 |
143 iCurrentState->OnEntryL(); |
150 iCurrentState->OnEntryL(); |
144 |
151 |
145 //redraw layout immediately to minimize flicker |
152 //redraw layout immediately to minimize flicker |
146 itutLayout->DisableLayoutDrawing( EFalse ); |
153 itutLayout->DisableLayoutDrawing( EFalse ); |