255 lines
12 KiB
Smali
255 lines
12 KiB
Smali
.class Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetSearchSuggestions.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestionsAdapter$OnSuggestionClickedListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;->configureUI(Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$Model;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final searchStore:Lcom/discord/stores/StoreSearch;
|
|
|
|
.field final synthetic this$0:Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;
|
|
|
|
.field final synthetic val$model:Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$Model;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$Model;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;->this$0:Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;
|
|
|
|
iput-object p2, p0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;->val$model:Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$Model;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreStream;->getSearch()Lcom/discord/stores/StoreSearch;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;->searchStore:Lcom/discord/stores/StoreSearch;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onChannelClicked(Lcom/discord/utilities/search/suggestion/entries/ChannelSuggestion;)V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;->searchStore:Lcom/discord/stores/StoreSearch;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreSearch;->getStoreSearchInput()Lcom/discord/stores/StoreSearchInput;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;->this$0:Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;
|
|
|
|
invoke-static {v1}, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;->access$000(Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;)Lcom/discord/utilities/search/strings/SearchStringProvider;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v1}, Lcom/discord/utilities/search/strings/SearchStringProvider;->getInFilterString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;->val$model:Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$Model;
|
|
|
|
invoke-static {v2}, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$Model;->access$100(Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$Model;)Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, p1, v1, v2}, Lcom/discord/stores/StoreSearchInput;->onInChannelClicked(Lcom/discord/utilities/search/suggestion/entries/ChannelSuggestion;Ljava/lang/String;Ljava/util/List;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onClearHistoryClicked()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;->searchStore:Lcom/discord/stores/StoreSearch;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreSearch;->clearHistory()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onFilterClicked(Lcom/discord/utilities/search/query/FilterType;)V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;->searchStore:Lcom/discord/stores/StoreSearch;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreSearch;->getStoreSearchInput()Lcom/discord/stores/StoreSearchInput;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;->this$0:Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;
|
|
|
|
invoke-static {v1}, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;->access$000(Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;)Lcom/discord/utilities/search/strings/SearchStringProvider;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;->val$model:Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$Model;
|
|
|
|
invoke-static {v2}, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$Model;->access$100(Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$Model;)Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, p1, v1, v2}, Lcom/discord/stores/StoreSearchInput;->onFilterClicked(Lcom/discord/utilities/search/query/FilterType;Lcom/discord/utilities/search/strings/SearchStringProvider;Ljava/util/List;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onHasClicked(Lcom/discord/utilities/search/query/node/answer/HasAnswerOption;)V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;->searchStore:Lcom/discord/stores/StoreSearch;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreSearch;->getStoreSearchInput()Lcom/discord/stores/StoreSearchInput;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;->this$0:Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;
|
|
|
|
invoke-static {v1}, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;->access$000(Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;)Lcom/discord/utilities/search/strings/SearchStringProvider;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v1}, Lcom/discord/utilities/search/strings/SearchStringProvider;->getHasFilterString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;->this$0:Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;
|
|
|
|
invoke-static {v2}, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;->access$000(Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;)Lcom/discord/utilities/search/strings/SearchStringProvider;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p1, v2}, Lcom/discord/utilities/search/query/node/answer/HasAnswerOption;->getLocalizedInputText(Lcom/discord/utilities/search/strings/SearchStringProvider;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;->val$model:Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$Model;
|
|
|
|
invoke-static {v3}, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$Model;->access$100(Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$Model;)Ljava/util/List;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v0, p1, v1, v2, v3}, Lcom/discord/stores/StoreSearchInput;->onHasClicked(Lcom/discord/utilities/search/query/node/answer/HasAnswerOption;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onRecentQueryClicked(Ljava/util/List;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Lcom/discord/utilities/search/query/node/QueryNode;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;->searchStore:Lcom/discord/stores/StoreSearch;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreSearch;->getStoreSearchInput()Lcom/discord/stores/StoreSearchInput;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/discord/stores/StoreSearchInput;->onQueryClicked(Ljava/util/List;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onUserClicked(Lcom/discord/utilities/search/suggestion/entries/UserSuggestion;)V
|
|
.locals 3
|
|
|
|
sget-object v0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$2;->$SwitchMap$com$discord$utilities$search$suggestion$entries$UserSuggestion$TargetType:[I
|
|
|
|
invoke-virtual {p1}, Lcom/discord/utilities/search/suggestion/entries/UserSuggestion;->getTargetType()Lcom/discord/utilities/search/suggestion/entries/UserSuggestion$TargetType;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lcom/discord/utilities/search/suggestion/entries/UserSuggestion$TargetType;->ordinal()I
|
|
|
|
move-result v1
|
|
|
|
aget v0, v0, v1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
const/4 v1, 0x2
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;->searchStore:Lcom/discord/stores/StoreSearch;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreSearch;->getStoreSearchInput()Lcom/discord/stores/StoreSearchInput;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;->this$0:Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;
|
|
|
|
invoke-static {v1}, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;->access$000(Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;)Lcom/discord/utilities/search/strings/SearchStringProvider;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v1}, Lcom/discord/utilities/search/strings/SearchStringProvider;->getFromFilterString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;->val$model:Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$Model;
|
|
|
|
invoke-static {v2}, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$Model;->access$100(Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$Model;)Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, p1, v1, v2}, Lcom/discord/stores/StoreSearchInput;->onFromUserClicked(Lcom/discord/utilities/search/suggestion/entries/UserSuggestion;Ljava/lang/String;Ljava/util/List;)V
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;->searchStore:Lcom/discord/stores/StoreSearch;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreSearch;->getStoreSearchInput()Lcom/discord/stores/StoreSearchInput;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;->this$0:Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;
|
|
|
|
invoke-static {v1}, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;->access$000(Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions;)Lcom/discord/utilities/search/strings/SearchStringProvider;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v1}, Lcom/discord/utilities/search/strings/SearchStringProvider;->getMentionsFilterString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$1;->val$model:Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$Model;
|
|
|
|
invoke-static {v2}, Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$Model;->access$100(Lcom/discord/widgets/search/suggestions/WidgetSearchSuggestions$Model;)Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0, p1, v1, v2}, Lcom/discord/stores/StoreSearchInput;->onMentionsUserClicked(Lcom/discord/utilities/search/suggestion/entries/UserSuggestion;Ljava/lang/String;Ljava/util/List;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|