title: smoothScrollToPosition on Backpressed
body: <pre><code>@Override
  public void onBackPressed() {
      if(ll_details_container.getVisibility() == View.GONE){
          ll_details_container.setAlpha(1.0f);
          ll_details_container.setVisibility(View.VISIBLE);
          lv_reviews.smoothScrollToPosition(1);
  
      }else{
          super.onBackPressed();
      }
  }
  </code></pre>
  
  <p>I was expecting with a single back press click will execute all the code inside if(true) clause, but with the first click only execute smoothScrollToPosition and then i have to click again for execute VISIBILITY line. I could not understand.</p>