photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlerdetails.cpp
equal
deleted
inserted
replaced
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; |