logsui/AppSrc/CLogsAppListView.cpp
branchRCL_3
changeset 85 38bb213f60ba
parent 68 9da50d567e3c
equal deleted inserted replaced
74:6b5524b4f673 85:38bb213f60ba
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 
    19 
    20 // INCLUDE FILES
    20 // INCLUDE FILES
    21 #include <logs.rsg>
    21 #include <Logs.rsg>
    22 #include <w32std.h>
    22 #include <w32std.h>
    23 #include <apgtask.h>
    23 #include <apgtask.h>
    24 
    24 
    25 #include "CLogsAppListView.h"
    25 #include "CLogsAppListView.h"
    26 #include "CLogsAppListControlContainer.h"
    26 #include "CLogsAppListControlContainer.h"
   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        }
       
   174     }
   163     }
   175 
   164 
   176 // ----------------------------------------------------------------------------
   165 // ----------------------------------------------------------------------------
   177 // CLogsAppListView::DoDeactivate
   166 // CLogsAppListView::DoDeactivate
   178 // ----------------------------------------------------------------------------
   167 // ----------------------------------------------------------------------------
   207 CLogsAppListView::CLogsAppListView()
   196 CLogsAppListView::CLogsAppListView()
   208     {
   197     {
   209     }
   198     }
   210 
   199 
   211 
   200 
   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 
       
   224 //  End of File
   201 //  End of File
   225 
   202