41 lines
880 B
Smali
41 lines
880 B
Smali
.class public final Landroidx/core/content/pm/PackageInfoCompat;
|
|
.super Ljava/lang/Object;
|
|
.source "PackageInfoCompat.java"
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static getLongVersionCode(Landroid/content/pm/PackageInfo;)J
|
|
.locals 2
|
|
.param p0 # Landroid/content/pm/PackageInfo;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1c
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
invoke-virtual {p0}, Landroid/content/pm/PackageInfo;->getLongVersionCode()J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
|
|
:cond_0
|
|
iget p0, p0, Landroid/content/pm/PackageInfo;->versionCode:I
|
|
|
|
int-to-long v0, p0
|
|
|
|
return-wide v0
|
|
.end method
|