ServiceCompat.java 1.6 KB
package android.support.v4.app;

import android.app.Service;
import android.support.annotation.RestrictTo;
import android.support.v4.os.BuildCompat;
import java.lang.annotation.Annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

public final class ServiceCompat
{
  public static final int START_STICKY = 1;
  public static final int STOP_FOREGROUND_DETACH = 2;
  public static final int STOP_FOREGROUND_REMOVE = 1;
  static final c a = new b();
  
  static
  {
    if (BuildCompat.isAtLeastN())
    {
      a = new a();
      return;
    }
  }
  
  public static void stopForeground(Service paramService, int paramInt)
  {
    a.a(paramService, paramInt);
  }
  
  @Retention(RetentionPolicy.SOURCE)
  @RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
  public static @interface StopForegroundFlags {}
  
  static final class a
    implements ServiceCompat.c
  {
    public final void a(Service paramService, int paramInt)
    {
      paramService.stopForeground(paramInt);
    }
  }
  
  static final class b
    implements ServiceCompat.c
  {
    public final void a(Service paramService, int paramInt)
    {
      if ((paramInt & 0x1) != 0) {}
      for (boolean bool = true;; bool = false)
      {
        paramService.stopForeground(bool);
        return;
      }
    }
  }
  
  static abstract interface c
  {
    public abstract void a(Service paramService, int paramInt);
  }
}


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