.class public final Landroidx/work/impl/RescheduleMigration; .super Landroidx/room/migration/Migration; .source "SourceFile" # instance fields .field private final mContext:Landroid/content/Context; # direct methods .method public constructor (Landroid/content/Context;II)V .locals 1 const-string v0, "mContext" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 229 invoke-direct {p0, p2, p3}, Landroidx/room/migration/Migration;->(II)V iput-object p1, p0, Landroidx/work/impl/RescheduleMigration;->mContext:Landroid/content/Context; return-void .end method # virtual methods .method public final getMContext()Landroid/content/Context; .locals 1 iget-object v0, p0, Landroidx/work/impl/RescheduleMigration;->mContext:Landroid/content/Context; return-object v0 .end method .method public migrate(Landroidx/sqlite/db/SupportSQLiteDatabase;)V .locals 4 const-string v0, "db" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget v0, p0, Landroidx/room/migration/Migration;->endVersion:I const/16 v1, 0xa const/4 v2, 0x1 const-string v3, "reschedule_needed" if-lt v0, v1, :cond_0 .line 234 invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v0 filled-new-array {v3, v0}, [Ljava/lang/Object; move-result-object v0 const-string v1, "INSERT OR REPLACE INTO `Preference` (`key`, `long_value`) VALUES (@key, @long_value)" .line 232 invoke-interface {p1, v1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;[Ljava/lang/Object;)V goto :goto_0 :cond_0 iget-object p1, p0, Landroidx/work/impl/RescheduleMigration;->mContext:Landroid/content/Context; const-string v0, "androidx.work.util.preferences" const/4 v1, 0x0 .line 238 invoke-virtual {p1, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences; move-result-object p1 .line 245 invoke-interface {p1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor; move-result-object p1 invoke-interface {p1, v3, v2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor; move-result-object p1 invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->apply()V :goto_0 return-void .end method