diff -r a8834a2e9a96 -r c52421ed5f07 uifw/AvKon/src/aknview.cpp --- a/uifw/AvKon/src/aknview.cpp Wed Jun 09 09:58:37 2010 +0300 +++ b/uifw/AvKon/src/aknview.cpp Mon Jun 21 15:57:43 2010 +0300 @@ -44,6 +44,7 @@ #endif // RD_SCALABLE_UI_V2 #include +#include #include "aknitemactionmenuregister.h" // MODULE DATA STRUCTURES @@ -54,6 +55,8 @@ // CLASS DECLARATION +static const TUid KUidGlxApp = { 0x200009ee }; // App uid of photo +static const TUid KUidVideoApp = { 0x200159b2 }; // App uid of video /** * Extension class. @@ -856,11 +859,20 @@ } } - if ( iCba ) - { - if ( aVisible ) - { - iCba->DrawableWindow()->SetOrdinalPosition( 0 ); + if (iCba) + { + if (aVisible) + { + //Added for fixing EAMI-856GRV and ESLM-85ZHQH: + //As video app and photo app spend a long time at deactiveview,during this time only cba shows up,and this is ugly in landscape mode + //so the solution is to don't call SetOrdinalPosition in video app and photo app while in landscape mode + TUid appid = iAppUi->Application()->AppDllUid(); + if (!(( appid == KUidVideoApp || appid == KUidGlxApp ) + && Layout_Meta_Data::IsLandscapeOrientation())) + { + iCba->DrawableWindow()->SetOrdinalPosition( 0 ); + } + iCba->MakeVisible( ETrue ); iCba->DrawNow(); // This is needed because problems if TRANSPARENCY is set, see MTVN-6HXCN4 }