public void show() {
   this.mStartTime = -1L;
   this.mDismissed = false;
   removeCallbacks(this.mDelayedHide);
   if (!this.mPostedShow) {
     postDelayed(this.mDelayedShow, 500L);
     this.mPostedShow = true;
   }
 }
 public void hide() {
   this.mDismissed = true;
   removeCallbacks(this.mDelayedShow);
   long l = System.currentTimeMillis() - this.mStartTime;
   if ((l >= 500L) || (this.mStartTime == -1L)) setVisibility(8);
   while (this.mPostedHide) return;
   postDelayed(this.mDelayedHide, 500L - l);
   this.mPostedHide = true;
 }
 public void onDetachedFromWindow() {
   super.onDetachedFromWindow();
   removeCallbacks();
 }
 public void onAttachedToWindow() {
   super.onAttachedToWindow();
   removeCallbacks();
 }
 private void removeCallbacks() {
   removeCallbacks(this.mDelayedHide);
   removeCallbacks(this.mDelayedShow);
 }