videoplayback/videoplaybackview/controlsrc/videoplaybackfullscreencontrol.cpp
changeset 63 4707a0db12f6
parent 58 d2b028fd1f7d
--- a/videoplayback/videoplaybackview/controlsrc/videoplaybackfullscreencontrol.cpp	Fri Sep 03 12:37:43 2010 +0300
+++ b/videoplayback/videoplaybackview/controlsrc/videoplaybackfullscreencontrol.cpp	Mon Sep 20 18:25:37 2010 +0300
@@ -15,7 +15,7 @@
 *
 */
 
-// Version : %version: da1mmcf#11 %
+// Version : %version: da1mmcf#12 %
 
 
 
@@ -42,6 +42,7 @@
     , mControl( widget )
     , mControlIndex( index )
     , mProperties( controlproperties )
+    , mVisible( false )
 {
     MPX_ENTER_EXIT(_L("VideoPlaybackFullScreenControl::VideoPlaybackFullScreenControl()"));
 
@@ -63,17 +64,22 @@
 //
 void VideoPlaybackFullScreenControl::setVisible( bool visible )
 {
-    switch ( mControlIndex )
+    if( mVisible != visible )
     {
-        case EControlBar:
+        mVisible = visible;
+
+        switch ( mControlIndex )
         {
-            static_cast<VideoPlaybackControlBar*>(mControl)->setVisibleToControlBar( visible );
-            break;
-        }
-        default:
-        {
-            mControl->setVisible( visible );
-            break;
+            case EControlBar:
+            {
+                static_cast<VideoPlaybackControlBar*>(mControl)->setVisibleToControlBar( visible );
+                break;
+            }
+            default:
+            {
+                mControl->setVisible( visible );
+                break;
+            }
         }
     }
 }