photosgallery/viewframework/dataprovider/src/glxmulmodelproviderbase.cpp
branchRCL_3
changeset 12 ce1c7ad1f18b
parent 0 4e91876724a2
child 19 420f6808bf21
equal deleted inserted replaced
11:71da52165949 12:ce1c7ad1f18b
   193 				break;
   193 				break;
   194 			case Alf::ETypeHighlight:
   194 			case Alf::ETypeHighlight:
   195 				{
   195 				{
   196 				if ( !iWithinFocusChangeCall )
   196 				if ( !iWithinFocusChangeCall )
   197 					{
   197 					{
   198 					// iWithinFocusChangeCall = ETrue;
       
   199 					HandleFocusChanged( FocusIndex(), iPreviousFocusIndex );
   198 					HandleFocusChanged( FocusIndex(), iPreviousFocusIndex );
   200 					//iPreviousFocusIndex = FocusIndex();
       
   201 					//iWithinFocusChangeCall = EFalse;
       
   202 					}
   199 					}
   203 				response = EEventHandled;
   200 				response = EEventHandled;
   204 				}
   201 				}
   205 				break;
   202 				break;
   206 			default:
   203 			default:
   450         {
   447         {
   451         index = iModel->Highlight();
   448         index = iModel->Highlight();
   452         // Check if Model count is zero in FS view, activate back grid view.
   449         // Check if Model count is zero in FS view, activate back grid view.
   453         if (iModel->Count() ==0)
   450         if (iModel->Count() ==0)
   454             {
   451             {
   455             TRAP_IGNORE( iNavigationalState->ActivatePreviousViewL() );    
   452             // if Count is Zero, set the navigation state to 
       
   453             // EGlxNavigationBackwards before going back to grid view
       
   454             CGlxUiUtility* uiUtility = CGlxUiUtility::UtilityL();
       
   455             CleanupClosePushL( *uiUtility );
       
   456             uiUtility->SetViewNavigationDirection(EGlxNavigationBackwards);
       
   457             CleanupStack::PopAndDestroy( uiUtility );
       
   458             
       
   459             TRAP_IGNORE( iNavigationalState->ActivatePreviousViewL() );            
   456             }
   460             }
   457         }
   461         }
   458     else
   462     else
   459         {
   463         {
   460         return KErrGeneral;
   464         return KErrGeneral;