47 lines
1.2 KiB
Smali
47 lines
1.2 KiB
Smali
.class final Landroidx/work/impl/WorkDatabaseMigrations$2;
|
|
.super Landroidx/room/migration/Migration;
|
|
.source "WorkDatabaseMigrations.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/work/impl/WorkDatabaseMigrations;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x8
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(II)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1, p2}, Landroidx/room/migration/Migration;-><init>(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final migrate(Landroidx/sqlite/db/SupportSQLiteDatabase;)V
|
|
.locals 2
|
|
.param p1 # Landroidx/sqlite/db/SupportSQLiteDatabase;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x17
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
const-string v0, "UPDATE workspec SET schedule_requested_at=0 WHERE state NOT IN (2, 3, 5) AND schedule_requested_at=-1 AND interval_duration<>0"
|
|
|
|
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|