textinput/peninputsplititut/src/peninputsplititutwesternuimgr.cpp
branchRCL_3
changeset 56 8152b1f1763a
parent 50 5a1685599b76
equal deleted inserted replaced
50:5a1685599b76 56:8152b1f1763a
   131         {
   131         {
   132         iCurrentState->OnExit();
   132         iCurrentState->OnExit();
   133         }
   133         }
   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         
   139     	CSplitItutUiLayout* itutLayout = 
   140 		CSplitItutUiLayout* itutLayout = 
   140 			static_cast<CSplitItutUiLayout*>( LayoutContext()->UiLayout() );
   141 			static_cast<CSplitItutUiLayout*>( LayoutContext()->UiLayout());
   141 		itutLayout->SizeChanged( NULL );
   142     	// Get the screen rect
   142     	}
   143     	TRect screenRect = DataMgr()->screenSize();
   143     iCurrentState->OnEntryL();
   144     	// If the screen is in portrait mode
       
   145     	if ( screenRect.Width() < screenRect.Height())
       
   146     		{
       
   147 			itutLayout->SizeChanged( NULL );
       
   148     		}
       
   149 
       
   150         iCurrentState->OnEntryL();
       
   151         
       
   152         //redraw layout immediately to minimize flicker
       
   153         itutLayout->DisableLayoutDrawing( EFalse );
       
   154         itutLayout->Draw();
       
   155         }
       
   156     else
       
   157         {
       
   158         iCurrentState->OnEntryL();
       
   159         }
       
   160     }
   144     }
   161 
   145 
   162 // ---------------------------------------------------------------------------
   146 // ---------------------------------------------------------------------------
   163 // CWesternSplitItutUiMgr::ActivateUiL
   147 // CWesternSplitItutUiMgr::ActivateUiL
   164 // ---------------------------------------------------------------------------
   148 // ---------------------------------------------------------------------------