logsui/AppSrc/CLogsAppListView.cpp
branchRCL_3
changeset 58 d4f567ce2e7c
parent 0 e686773b3f54
child 64 c1e8ba0c2b16
equal deleted inserted replaced
57:2666d9724c76 58:d4f567ce2e7c
   158         AppUi()->HideInBackground(); 
   158         AppUi()->HideInBackground(); 
   159         }
   159         }
   160     
   160     
   161     // Just to make sure the inputblocker is not on
   161     // Just to make sure the inputblocker is not on
   162     RemoveInputBlocker();
   162     RemoveInputBlocker();
       
   163     
       
   164     // Avoid the flicking when transfer to foreground from background.
       
   165     if(LogsAppUi()->IsBackground())
       
   166        {
       
   167            iContainer->DrawNow();        
       
   168            iEikonEnv->AppUiFactory()->StatusPane()->DrawNow();
       
   169            LogsAppUi()->SetCustomControl(0); 
       
   170        
       
   171            CCoeEnv * env = CCoeEnv::Static();
       
   172            env->WsSession().SetWindowGroupOrdinalPosition(env->RootWin().Identifier(),0); 
       
   173        }
   163     }
   174     }
   164 
   175 
   165 // ----------------------------------------------------------------------------
   176 // ----------------------------------------------------------------------------
   166 // CLogsAppListView::DoDeactivate
   177 // CLogsAppListView::DoDeactivate
   167 // ----------------------------------------------------------------------------
   178 // ----------------------------------------------------------------------------
   196 CLogsAppListView::CLogsAppListView()
   207 CLogsAppListView::CLogsAppListView()
   197     {
   208     {
   198     }
   209     }
   199 
   210 
   200 
   211 
       
   212 void CLogsAppListView::ViewActivatedL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,const TDesC8& aCustomMessage)
       
   213     {
       
   214     // To avoid the flicking when transfer to foreground from background,we control the view show manually.
       
   215     if(LogsAppUi()->IsBackground()  &&
       
   216             LogsAppUi()->ActiveViewId() != ELogAppListViewId)
       
   217         {
       
   218             LogsAppUi()->SetCustomControl(1);
       
   219         }    
       
   220     CLogsBaseView::ViewActivatedL(aPrevViewId,aCustomMessageId,aCustomMessage);
       
   221     }
       
   222 
       
   223 
   201 //  End of File
   224 //  End of File
   202 
   225