idlehomescreen/xmluirendering/uiengine/src/xnviewadapter.cpp
changeset 4 4d54b72983ae
parent 2 08c6ee43b396
child 5 c743ef5928ba
equal deleted inserted replaced
3:fb3763350a08 4:4d54b72983ae
    39 #include "xnbgcontrol.h"
    39 #include "xnbgcontrol.h"
    40 #include "xnfocuscontrol.h"
    40 #include "xnfocuscontrol.h"
    41 
    41 
    42 #include "xnviewadapter.h"
    42 #include "xnviewadapter.h"
    43 #include "xnmenu.h"
    43 #include "xnmenu.h"
       
    44 #include "xneditmode.h"
    44 
    45 
    45 // Constants
    46 // Constants
    46 const TUid KXmlViewUid = { 1 };
    47 const TUid KXmlViewUid = { 1 };
    47 
    48 
    48 // Data types
    49 // Data types
   473     {     
   474     {     
   474     if ( aStatus == MXnUiStateObserver::EPartialForeground || 
   475     if ( aStatus == MXnUiStateObserver::EPartialForeground || 
   475          aStatus == MXnUiStateObserver::EBackground )
   476          aStatus == MXnUiStateObserver::EBackground )
   476         {
   477         {
   477         iFlags.Clear( EIsForeground );
   478         iFlags.Clear( EIsForeground );
   478         
   479 
       
   480         CXnEditMode* editMode = iAppUiAdapter.UiEngine().EditMode();
       
   481         if( editMode )
       
   482             {
       
   483             editMode->StopDraggingL();
       
   484             }
       
   485 
   479         iFocusControl->MakeVisible( EFalse );
   486         iFocusControl->MakeVisible( EFalse );
   480         
   487         
   481         TRAP_IGNORE( ChangeControlsStateL( EFalse ) );
   488         TRAP_IGNORE( ChangeControlsStateL( EFalse ) );
   482         }
   489         }
   483     else
   490     else