photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlerrotate.cpp
equal
deleted
inserted
replaced
207 void CGlxCommandHandlerRotate::HandleFocusChangedL( |
207 void CGlxCommandHandlerRotate::HandleFocusChangedL( |
208 NGlxListDefs::TFocusChangeType /*aType*/, TInt /*aNewIndex*/, |
208 NGlxListDefs::TFocusChangeType /*aType*/, TInt /*aNewIndex*/, |
209 TInt /*aOldIndex*/, MGlxMediaList* /*aList*/) |
209 TInt /*aOldIndex*/, MGlxMediaList* /*aList*/) |
210 { |
210 { |
211 TRACER("CGlxCommandHandlerRotate::HandleFocusChangedL"); |
211 TRACER("CGlxCommandHandlerRotate::HandleFocusChangedL"); |
212 //Not required as we are doing this after each rotation DoPreserveOrientationL(); |
|
213 DoCleanupRotationParametersL(); |
212 DoCleanupRotationParametersL(); |
214 |
213 |
215 iMediaList = NULL; |
214 iMediaList = NULL; |
216 } |
215 } |
217 |
216 |
460 if ( iExifWriter ) |
459 if ( iExifWriter ) |
461 { |
460 { |
462 delete iExifWriter; |
461 delete iExifWriter; |
463 iExifWriter = NULL; |
462 iExifWriter = NULL; |
464 } |
463 } |
465 //This will be called when there would be a change in Media list focus. |
|
466 //So removing the call from here |
|
467 //DoCleanupRotationParameters(); |
|
468 } |
464 } |
469 // --------------------------------------------------------------------------- |
465 // --------------------------------------------------------------------------- |
470 // DoInitializeRotationParameters |
466 // DoInitializeRotationParameters |
471 // --------------------------------------------------------------------------- |
467 // --------------------------------------------------------------------------- |
472 // |
468 // |
530 //Cleanup the thumbnail DB using Cleanup command as MDS takes a Long time for a callback. |
526 //Cleanup the thumbnail DB using Cleanup command as MDS takes a Long time for a callback. |
531 CMPXCommand* command = TGlxCommandFactory::ThumbnailCleanupCommandLC(); |
527 CMPXCommand* command = TGlxCommandFactory::ThumbnailCleanupCommandLC(); |
532 command->SetTObjectValueL<TAny*>(KMPXCommandGeneralSessionId, static_cast<TAny*>(this)); |
528 command->SetTObjectValueL<TAny*>(KMPXCommandGeneralSessionId, static_cast<TAny*>(this)); |
533 |
529 |
534 //Nitz To Do Initialize cleanup command Just for the respective Media Items |
530 //Nitz To Do Initialize cleanup command Just for the respective Media Items |
535 //TGlxMediaId itemId= iGlxItem->Id(); |
|
536 // command->SetTObjectValueL<TMPXItemId>(KMPXMediaGeneralId,itemId.Value()); |
|
537 iMediaList->CommandL(*command); |
531 iMediaList->CommandL(*command); |
538 CleanupStack::PopAndDestroy(command); |
532 CleanupStack::PopAndDestroy(command); |
539 iMediaList->RemoveMediaListObserver(this); |
533 iMediaList->RemoveMediaListObserver(this); |
540 iAddedObserver=EFalse; |
534 iAddedObserver=EFalse; |
541 //CGlxTextureManager& tm = iUiUtility->GlxTextureManager(); |
|
542 //tm.UpdateThumbnailTexture(*iGlxItem); |
|
543 iMediaList = NULL; |
535 iMediaList = NULL; |
544 iGlxItem = NULL; |
536 iGlxItem = NULL; |
545 |
537 |
546 iRotationApplied = EFalse; |
538 iRotationApplied = EFalse; |
547 if ( iExifData ) |
539 if ( iExifData ) |