diff -r d5e927d5853b -r 7cee158cb8cd javauis/lcdui_akn/javalcdui/src/CMIDEnv.cpp --- a/javauis/lcdui_akn/javalcdui/src/CMIDEnv.cpp Tue Sep 14 21:06:50 2010 +0300 +++ b/javauis/lcdui_akn/javalcdui/src/CMIDEnv.cpp Wed Sep 15 12:05:25 2010 +0300 @@ -58,7 +58,13 @@ LcduiMidletAttributeValues::KUIEnhCanvasBackground); #ifdef RD_JAVA_NGA_ENABLED InitHardwareStatusL(); + + iVideoOverlayEnabled = MidletAttributeContainsVal( + LcduiMidletAttributes::KAttribUIEnhancement, + LcduiMidletAttributeValues::KUIEnhVideoOverlay); #endif // RD_JAVA_NGA_ENABLED + + iMMAPILock.CreateLocal(); } CMIDEnv::~CMIDEnv() @@ -71,6 +77,7 @@ delete iKeyTranslator; iObservers.Close(); iCanvasData.iLock.Close(); + iMMAPILock.Close(); } void CMIDEnv::SetUtils(MMIDUtils* aUtils) @@ -312,6 +319,16 @@ } } +TBool CMIDEnv::VideoOverlayEnabled() const +{ + return iVideoOverlayEnabled; +} + +RCriticalSection& CMIDEnv::GetMMAPILock() +{ + return iMMAPILock; +} + #ifdef RD_JAVA_NGA_ENABLED void CMIDEnv::HandleFullOrPartialForegroundL(TBool aForeground) {