private void updatePromoVisibility(float percentage){
  if (isPromoAvailable()) {
    mPromoVisible=true;
    mPromoHeightPx=Math.round(MathUtils.clamp(percentage * mPromoContentHeightPx,0.f,mPromoContentHeightPx));
    mPromoOpacity=percentage;
  }
 else {
    mPromoVisible=false;
    mPromoHeightPx=0.f;
    mPromoOpacity=0.f;
  }
}

private void updatePromoVisibility ( float percentage ) { if ( isPromoAvailable ( ) ) { mPromoVisible = true ; mPromoHeightPx = Math . round ( MathUtils . clamp ( percentage * mPromoContentHeightPx , 0.f , mPromoContentHeightPx ) ) ; mPromoOpacity = percentage ; } else { mPromoVisible = false ; mPromoHeightPx = 0.f ; mPromoOpacity = 0.f ; } }
updates the ui state for opt out promo .
