apkfuckery/com.discord/smali/androidx/core/app/ServiceCompat.smali

66 lines
1.2 KiB
Smali

.class public final Landroidx/core/app/ServiceCompat;
.super Ljava/lang/Object;
.source "ServiceCompat.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/core/app/ServiceCompat$StopForegroundFlags;
}
.end annotation
# static fields
.field public static final START_STICKY:I = 0x1
.field public static final STOP_FOREGROUND_DETACH:I = 0x2
.field public static final STOP_FOREGROUND_REMOVE:I = 0x1
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static stopForeground(Landroid/app/Service;I)V
.locals 2
.param p0 # Landroid/app/Service;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x18
if-lt v0, v1, :cond_0
invoke-virtual {p0, p1}, Landroid/app/Service;->stopForeground(I)V
goto :goto_1
:cond_0
const/4 v0, 0x1
and-int/2addr p1, v0
if-eqz p1, :cond_1
goto :goto_0
:cond_1
const/4 v0, 0x0
:goto_0
invoke-virtual {p0, v0}, Landroid/app/Service;->stopForeground(Z)V
:goto_1
return-void
.end method