photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlerdetails.cpp
branchRCL_3
changeset 32 78ad99c24f08
parent 25 191387a8b767
equal deleted inserted replaced
30:a60acebbbd9d 32:78ad99c24f08
   176 			iAvkonAppUi->ProcessCommandL(EGlxCmdDialogLaunched);
   176 			iAvkonAppUi->ProcessCommandL(EGlxCmdDialogLaunched);
   177 
   177 
   178 			if ( err == KErrNone )
   178 			if ( err == KErrNone )
   179 				{
   179 				{
   180 				TInt focusIndex = aList.FocusIndex();
   180 				TInt focusIndex = aList.FocusIndex();
       
   181 				// In Grid view, details will be shown for the selected item
       
   182 				if (aList.SelectionCount() == 1) 
       
   183 					{ 
       
   184 					focusIndex = aList.SelectedItemIndex(0); 
       
   185 					} 
   181 				TGlxMedia item = aList.Item(focusIndex);
   186 				TGlxMedia item = aList.Item(focusIndex);
   182 				const CGlxMedia* media = item.Properties();
   187 				const CGlxMedia* media = item.Properties();
   183 
   188 
   184 				TBool isDrm = aList.Item(focusIndex).IsDrmProtected();
   189 				TBool isDrm = aList.Item(focusIndex).IsDrmProtected();
   185 				TBool isVideo = EFalse;
   190 				TBool isVideo = EFalse;