             }
             else
             {
-                actionBar.visible = actionBar.includeInLayout = !actionBar.visible;
+                actionBar.visible = actionBar.includeInLayout = showingActionBar;
+                
+                if (activeView)
+                    activeView.setActionBarVisible(showingActionBar);
             }
         }
         

        
        // Clear flags and temporary properties
		actionBarVisibilityEffect = null;
		actionBarVisibilityInvalidated = false;
        
        if (actionBarProps)
        {
            // Update the actionBar visibility, includeInLayout and cacheAsBitmap flags		
    		actionBar.visible = actionBar.includeInLayout = !actionBarProps.start.visible;
            actionBar.cacheAsBitmap = actionBarProps.start.cacheAsBitmap;
    		actionBarProps = null;
        }
        
        if (contentGroupProps)
        {
		    contentGroup.includeInLayout = contentGroupProps.start.includeInLayout;
		    contentGroup.cacheAsBitmap = contentGroupProps.start.cacheAsBitmap;
    		contentGroupProps = null;
        }
    }

        animate.motionPaths.push(new SimpleMotionPath("height", props.start.height, props.end.height));
        animate.motionPaths.push(new SimpleMotionPath("y", props.start.y, props.end.y));

        contentGroup.includeInLayout = false;
        return animate;
    }
    
