protected void updatePanelForMaximization(float percentage){
  float promoVisibilityPercentage=isFullscreenSizePanel() ? 1.f - percentage : 1.f;
  updatePromoVisibility(promoVisibilityPercentage);
  mBasePageY=getBasePageTargetY();
  float brightness=MathUtils.interpolate(BASE_PAGE_BRIGHTNESS_STATE_EXPANDED,BASE_PAGE_BRIGHTNESS_STATE_MAXIMIZED,percentage);
  mBasePageBrightness=brightness;
  float searchBarHeight=Math.round(MathUtils.interpolate(getSearchBarHeightExpanded(),getSearchBarHeightMaximized(),percentage));
  mSearchBarHeight=searchBarHeight;
  mIsSearchBarBorderVisible=true;
  mArrowIconOpacity=ARROW_ICON_OPACITY_STATE_MAXIMIZED;
  mCloseIconOpacity=CLOSE_ICON_OPACITY_STATE_MAXIMIZED;
  mProgressBarOpacity=1.f;
  updateSearchBarShadow();
}

protected void updatePanelForMaximization ( float percentage ) { float promoVisibilityPercentage = isFullscreenSizePanel ( ) ? 1.f - percentage : 1.f ; updatePromoVisibility ( promoVisibilityPercentage ) ; mBasePageY = getBasePageTargetY ( ) ; float brightness = MathUtils . interpolate ( BASE_PAGE_BRIGHTNESS_STATE_EXPANDED , BASE_PAGE_BRIGHTNESS_STATE_MAXIMIZED , percentage ) ; mBasePageBrightness = brightness ; float searchBarHeight = Math . round ( MathUtils . interpolate ( getSearchBarHeightExpanded ( ) , getSearchBarHeightMaximized ( ) , percentage ) ) ; mSearchBarHeight = searchBarHeight ; mIsSearchBarBorderVisible = true ; mArrowIconOpacity = ARROW_ICON_OPACITY_STATE_MAXIMIZED ; mCloseIconOpacity = CLOSE_ICON_OPACITY_STATE_MAXIMIZED ; mProgressBarOpacity = 1.f ; updateSearchBarShadow ( ) ; }
updates the ui state for the expanded to maximized transition ( and vice versa ) , according to a completion | percentage | .
