ServiceCompat.java
1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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
*/