572 lines
18 KiB
Smali
572 lines
18 KiB
Smali
.class public final Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;
|
|
.super Ljava/lang/Object;
|
|
.source "MGPreferenceSearchHistoryCache.kt"
|
|
|
|
# interfaces
|
|
.implements Lcom/discord/utilities/search/history/SearchHistoryCache;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$TargetHistory;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final MAX_QUERIES_PER_TARGET:I
|
|
|
|
.field public final MAX_SEARCH_TARGETS:I
|
|
|
|
.field public final backingCache:Lcom/discord/utilities/persister/Persister;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/discord/utilities/persister/Persister<",
|
|
"Ljava/util/LinkedList<",
|
|
"Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$TargetHistory;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 3
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/16 v0, 0xa
|
|
|
|
iput v0, p0, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;->MAX_SEARCH_TARGETS:I
|
|
|
|
const/4 v0, 0x5
|
|
|
|
iput v0, p0, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;->MAX_QUERIES_PER_TARGET:I
|
|
|
|
new-instance v0, Lcom/discord/utilities/persister/Persister;
|
|
|
|
new-instance v1, Ljava/util/LinkedList;
|
|
|
|
invoke-direct {v1}, Ljava/util/LinkedList;-><init>()V
|
|
|
|
const-string v2, "SEARCH_HISTORY_V2"
|
|
|
|
invoke-direct {v0, v2, v1}, Lcom/discord/utilities/persister/Persister;-><init>(Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
iput-object v0, p0, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;->backingCache:Lcom/discord/utilities/persister/Persister;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$find(Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;Ljava/util/LinkedList;Lcom/discord/stores/StoreSearch$SearchTarget;)Ljava/util/LinkedList;
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;->find(Ljava/util/LinkedList;Lcom/discord/stores/StoreSearch$SearchTarget;)Ljava/util/LinkedList;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$getBackingCache$p(Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;)Lcom/discord/utilities/persister/Persister;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;->backingCache:Lcom/discord/utilities/persister/Persister;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$putAndCopy(Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;Ljava/util/LinkedList;Lcom/discord/stores/StoreSearch$SearchTarget;Ljava/util/List;)Ljava/util/LinkedList;
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;->putAndCopy(Ljava/util/LinkedList;Lcom/discord/stores/StoreSearch$SearchTarget;Ljava/util/List;)Ljava/util/LinkedList;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$removeAndCopy(Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;Ljava/util/LinkedList;Lcom/discord/stores/StoreSearch$SearchTarget;)Ljava/util/LinkedList;
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;->removeAndCopy(Ljava/util/LinkedList;Lcom/discord/stores/StoreSearch$SearchTarget;)Ljava/util/LinkedList;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private final find(Ljava/util/LinkedList;Lcom/discord/stores/StoreSearch$SearchTarget;)Ljava/util/LinkedList;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/LinkedList<",
|
|
"Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$TargetHistory;",
|
|
">;",
|
|
"Lcom/discord/stores/StoreSearch$SearchTarget;",
|
|
")",
|
|
"Ljava/util/LinkedList<",
|
|
"Ljava/util/List<",
|
|
"Lcom/discord/utilities/search/query/node/QueryNode;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p1}, Ljava/util/LinkedList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "iterator()"
|
|
|
|
invoke-static {p1, v0}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "iter.next()"
|
|
|
|
invoke-static {v0, v1}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast v0, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$TargetHistory;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$TargetHistory;->getSearchTarget()Lcom/discord/stores/StoreSearch$SearchTarget;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1, p2}, Lm/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$TargetHistory;->getRecentQueries()Ljava/util/LinkedList;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_1
|
|
new-instance p1, Ljava/util/LinkedList;
|
|
|
|
invoke-direct {p1}, Ljava/util/LinkedList;-><init>()V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private final putAndCopy(Ljava/util/LinkedList;Lcom/discord/stores/StoreSearch$SearchTarget;Ljava/util/List;)Ljava/util/LinkedList;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/LinkedList<",
|
|
"Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$TargetHistory;",
|
|
">;",
|
|
"Lcom/discord/stores/StoreSearch$SearchTarget;",
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Lcom/discord/utilities/search/query/node/QueryNode;",
|
|
">;)",
|
|
"Ljava/util/LinkedList<",
|
|
"Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$TargetHistory;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p1}, Ljava/util/LinkedList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "iterator()"
|
|
|
|
invoke-static {v0, v1}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "targetsIter.next()"
|
|
|
|
invoke-static {v1, v2}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast v1, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$TargetHistory;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$TargetHistory;->getSearchTarget()Lcom/discord/stores/StoreSearch$SearchTarget;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v2, p2}, Lm/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->remove()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v1, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
new-instance v1, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$TargetHistory;
|
|
|
|
new-instance v0, Ljava/util/LinkedList;
|
|
|
|
invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V
|
|
|
|
invoke-direct {v1, p2, v0}, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$TargetHistory;-><init>(Lcom/discord/stores/StoreSearch$SearchTarget;Ljava/util/LinkedList;)V
|
|
|
|
:goto_1
|
|
invoke-virtual {v1}, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$TargetHistory;->getRecentQueries()Ljava/util/LinkedList;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Ljava/util/LinkedList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v2, "targetHistory.recentQueries.iterator()"
|
|
|
|
invoke-static {v0, v2}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:cond_3
|
|
:goto_2
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "queriesIter.next()"
|
|
|
|
invoke-static {v2, v3}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast v2, Ljava/util/List;
|
|
|
|
invoke-static {v2, p3}, Lm/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->remove()V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
invoke-virtual {v1}, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$TargetHistory;->getRecentQueries()Ljava/util/LinkedList;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p3}, Ljava/util/LinkedList;->push(Ljava/lang/Object;)V
|
|
|
|
new-instance p3, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$TargetHistory;
|
|
|
|
new-instance v0, Ljava/util/LinkedList;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$TargetHistory;->getRecentQueries()Ljava/util/LinkedList;
|
|
|
|
move-result-object v1
|
|
|
|
iget v2, p0, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;->MAX_QUERIES_PER_TARGET:I
|
|
|
|
invoke-static {v1, v2}, Lm/q/l;->take(Ljava/lang/Iterable;I)Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/LinkedList;-><init>(Ljava/util/Collection;)V
|
|
|
|
invoke-direct {p3, p2, v0}, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$TargetHistory;-><init>(Lcom/discord/stores/StoreSearch$SearchTarget;Ljava/util/LinkedList;)V
|
|
|
|
invoke-virtual {p1, p3}, Ljava/util/LinkedList;->push(Ljava/lang/Object;)V
|
|
|
|
new-instance p2, Ljava/util/LinkedList;
|
|
|
|
iget p3, p0, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;->MAX_SEARCH_TARGETS:I
|
|
|
|
invoke-static {p1, p3}, Lm/q/l;->take(Ljava/lang/Iterable;I)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p2, p1}, Ljava/util/LinkedList;-><init>(Ljava/util/Collection;)V
|
|
|
|
return-object p2
|
|
.end method
|
|
|
|
.method private final removeAndCopy(Ljava/util/LinkedList;Lcom/discord/stores/StoreSearch$SearchTarget;)Ljava/util/LinkedList;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/LinkedList<",
|
|
"Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$TargetHistory;",
|
|
">;",
|
|
"Lcom/discord/stores/StoreSearch$SearchTarget;",
|
|
")",
|
|
"Ljava/util/LinkedList<",
|
|
"Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$TargetHistory;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p1}, Ljava/util/LinkedList;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "iterator()"
|
|
|
|
invoke-static {v0, v1}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "iter.next()"
|
|
|
|
invoke-static {v1, v2}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
check-cast v1, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$TargetHistory;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$TargetHistory;->getSearchTarget()Lcom/discord/stores/StoreSearch$SearchTarget;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1, p2}, Lm/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->remove()V
|
|
|
|
:cond_1
|
|
new-instance p2, Ljava/util/LinkedList;
|
|
|
|
invoke-direct {p2, p1}, Ljava/util/LinkedList;-><init>(Ljava/util/Collection;)V
|
|
|
|
return-object p2
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public clear(Lcom/discord/stores/StoreSearch$SearchTarget;)V
|
|
.locals 8
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;->backingCache:Lcom/discord/utilities/persister/Persister;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/persister/Persister;->getObservable()Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->c(I)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$clear$1;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$clear$1;-><init>(Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;Lcom/discord/stores/StoreSearch$SearchTarget;)V
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->f(Lu/l/i;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Le/a/b/k;->a:Le/a/b/k;
|
|
|
|
new-instance v1, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$clear$2;
|
|
|
|
invoke-direct {v1, p0}, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$clear$2;-><init>(Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;)V
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/16 v7, 0x3c
|
|
|
|
const-string v2, "clear history"
|
|
|
|
invoke-static/range {v0 .. v7}, Le/a/b/k;->a(Le/a/b/k;Lkotlin/jvm/functions/Function1;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroid/content/Context;Lkotlin/jvm/functions/Function0;I)Lrx/Observable$c;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Lrx/Observable;->a(Lrx/Observable$c;)Lrx/Observable;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "searchTarget"
|
|
|
|
invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public getHistory(Lcom/discord/stores/StoreSearch$SearchTarget;)Lrx/Observable;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/discord/stores/StoreSearch$SearchTarget;",
|
|
")",
|
|
"Lrx/Observable<",
|
|
"Ljava/util/Collection<",
|
|
"Ljava/util/List<",
|
|
"Lcom/discord/utilities/search/query/node/QueryNode;",
|
|
">;>;>;"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;->backingCache:Lcom/discord/utilities/persister/Persister;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/persister/Persister;->getObservable()Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$getHistory$1;
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$getHistory$1;-><init>(Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;Lcom/discord/stores/StoreSearch$SearchTarget;)V
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->f(Lu/l/i;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v0, "backingCache\n .ge\u2026{ it.find(searchTarget) }"
|
|
|
|
invoke-static {p1, v0}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
const-string p1, "searchTarget"
|
|
|
|
invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public persistQuery(Lcom/discord/stores/StoreSearch$SearchTarget;Ljava/util/List;)V
|
|
.locals 8
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/discord/stores/StoreSearch$SearchTarget;",
|
|
"Ljava/util/List<",
|
|
"+",
|
|
"Lcom/discord/utilities/search/query/node/QueryNode;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;->backingCache:Lcom/discord/utilities/persister/Persister;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/persister/Persister;->getObservable()Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->c(I)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$persistQuery$1;
|
|
|
|
invoke-direct {v1, p0, p1, p2}, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$persistQuery$1;-><init>(Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;Lcom/discord/stores/StoreSearch$SearchTarget;Ljava/util/List;)V
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->f(Lu/l/i;)Lrx/Observable;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Le/a/b/k;->a:Le/a/b/k;
|
|
|
|
new-instance v1, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$persistQuery$2;
|
|
|
|
invoke-direct {v1, p0}, Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache$persistQuery$2;-><init>(Lcom/discord/utilities/search/history/MGPreferenceSearchHistoryCache;)V
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/16 v7, 0x3c
|
|
|
|
const-string v2, "persist query"
|
|
|
|
invoke-static/range {v0 .. v7}, Le/a/b/k;->a(Le/a/b/k;Lkotlin/jvm/functions/Function1;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroid/content/Context;Lkotlin/jvm/functions/Function0;I)Lrx/Observable$c;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1, p2}, Lrx/Observable;->a(Lrx/Observable$c;)Lrx/Observable;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "query"
|
|
|
|
invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p1, "searchTarget"
|
|
|
|
invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|