ViewCompatLollipop.java 1.58 KB
package android.support.v4.view;

import android.annotation.TargetApi;
import android.graphics.Rect;
import android.support.annotation.RequiresApi;
import android.view.View;
import android.view.View.OnApplyWindowInsetsListener;
import android.view.WindowInsets;

@TargetApi(21)
@RequiresApi(21)
final class ViewCompatLollipop
{
  private static ThreadLocal<Rect> a;
  
  static Rect a()
  {
    if (a == null) {
      a = new ThreadLocal();
    }
    Rect localRect2 = (Rect)a.get();
    Rect localRect1 = localRect2;
    if (localRect2 == null)
    {
      localRect1 = new Rect();
      a.set(localRect1);
    }
    localRect1.setEmpty();
    return localRect1;
  }
  
  public static void a(View paramView, OnApplyWindowInsetsListenerBridge paramOnApplyWindowInsetsListenerBridge)
  {
    if (paramOnApplyWindowInsetsListenerBridge == null)
    {
      paramView.setOnApplyWindowInsetsListener(null);
      return;
    }
    paramView.setOnApplyWindowInsetsListener(new View.OnApplyWindowInsetsListener()
    {
      public final WindowInsets onApplyWindowInsets(View paramAnonymousView, WindowInsets paramAnonymousWindowInsets)
      {
        return (WindowInsets)this.a.onApplyWindowInsets(paramAnonymousView, paramAnonymousWindowInsets);
      }
    });
  }
  
  public static abstract interface OnApplyWindowInsetsListenerBridge
  {
    public abstract Object onApplyWindowInsets(View paramView, Object paramObject);
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/view/ViewCompatLollipop.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */