853 lines
27 KiB
Smali
853 lines
27 KiB
Smali
.class public Lcom/moji/newliveview/search/ui/SearchActivity;
|
|
.super Lcom/moji/newliveview/base/BaseLiveViewActivity;
|
|
.source "SearchActivity.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnClickListener;
|
|
|
|
|
|
# instance fields
|
|
.field private b:Landroid/widget/ImageView;
|
|
|
|
.field private c:Landroid/widget/EditText;
|
|
|
|
.field private i:Landroid/widget/ImageView;
|
|
|
|
.field private j:Landroid/widget/TextView;
|
|
|
|
.field private k:Ljava/lang/String;
|
|
|
|
.field private l:Landroid/support/v4/view/ViewPager;
|
|
|
|
.field private m:Landroid/util/SparseArray;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroid/util/SparseArray<",
|
|
"Lcom/moji/newliveview/search/ui/BaseSearchFragment;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private n:Lcom/moji/newliveview/search/ui/SearchCityLiveFragment;
|
|
|
|
.field private o:Lcom/moji/newliveview/search/ui/SearchFriendFragment;
|
|
|
|
.field private p:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
.field private q:Lcom/moji/newliveview/search/ui/HistoryAdapter;
|
|
|
|
.field private r:Lcom/moji/newliveview/search/controller/SearchHistoryController;
|
|
|
|
.field private s:Lcom/moji/newliveview/search/ui/HistoryAdapter$OnUserHandlerListener;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 39
|
|
invoke-direct {p0}, Lcom/moji/newliveview/base/BaseLiveViewActivity;-><init>()V
|
|
|
|
.line 47
|
|
new-instance v0, Landroid/util/SparseArray;
|
|
|
|
invoke-direct {v0}, Landroid/util/SparseArray;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->m:Landroid/util/SparseArray;
|
|
|
|
.line 348
|
|
new-instance v0, Lcom/moji/newliveview/search/ui/SearchActivity$6;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/newliveview/search/ui/SearchActivity$6;-><init>(Lcom/moji/newliveview/search/ui/SearchActivity;)V
|
|
|
|
iput-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->s:Lcom/moji/newliveview/search/ui/HistoryAdapter$OnUserHandlerListener;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/newliveview/search/ui/SearchActivity;)V
|
|
.locals 0
|
|
|
|
.line 39
|
|
invoke-direct {p0}, Lcom/moji/newliveview/search/ui/SearchActivity;->k()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/newliveview/search/ui/SearchActivity;Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
.line 39
|
|
invoke-direct {p0, p1}, Lcom/moji/newliveview/search/ui/SearchActivity;->a(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Ljava/lang/String;)V
|
|
.locals 3
|
|
|
|
.line 271
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->l:Landroid/support/v4/view/ViewPager;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v4/view/ViewPager;->getCurrentItem()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 273
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->n:Lcom/moji/newliveview/search/ui/SearchCityLiveFragment;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 274
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 275
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->n:Lcom/moji/newliveview/search/ui/SearchCityLiveFragment;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/newliveview/search/ui/SearchCityLiveFragment;->a(Z)V
|
|
|
|
.line 278
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->n:Lcom/moji/newliveview/search/ui/SearchCityLiveFragment;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/moji/newliveview/search/ui/SearchCityLiveFragment;->a(Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v2, 0x1
|
|
|
|
if-ne v0, v2, :cond_3
|
|
|
|
.line 282
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->o:Lcom/moji/newliveview/search/ui/SearchFriendFragment;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 283
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
.line 284
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->o:Lcom/moji/newliveview/search/ui/SearchFriendFragment;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/newliveview/search/ui/SearchFriendFragment;->a(Z)V
|
|
|
|
.line 286
|
|
:cond_2
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->o:Lcom/moji/newliveview/search/ui/SearchFriendFragment;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/moji/newliveview/search/ui/SearchFriendFragment;->a(Ljava/lang/String;)V
|
|
|
|
:cond_3
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/newliveview/search/ui/SearchActivity;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
.line 39
|
|
iget-object p0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->k:Ljava/lang/String;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/newliveview/search/ui/SearchActivity;Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
.line 39
|
|
iput-object p1, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->k:Ljava/lang/String;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method static synthetic c(Lcom/moji/newliveview/search/ui/SearchActivity;)Landroid/widget/ImageView;
|
|
.locals 0
|
|
|
|
.line 39
|
|
iget-object p0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->i:Landroid/widget/ImageView;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic d(Lcom/moji/newliveview/search/ui/SearchActivity;)Landroid/support/v4/view/ViewPager;
|
|
.locals 0
|
|
|
|
.line 39
|
|
iget-object p0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->l:Landroid/support/v4/view/ViewPager;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic e(Lcom/moji/newliveview/search/ui/SearchActivity;)Lcom/moji/newliveview/search/ui/SearchCityLiveFragment;
|
|
.locals 0
|
|
|
|
.line 39
|
|
iget-object p0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->n:Lcom/moji/newliveview/search/ui/SearchCityLiveFragment;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic f(Lcom/moji/newliveview/search/ui/SearchActivity;)Lcom/moji/newliveview/search/ui/SearchFriendFragment;
|
|
.locals 0
|
|
|
|
.line 39
|
|
iget-object p0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->o:Lcom/moji/newliveview/search/ui/SearchFriendFragment;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic g(Lcom/moji/newliveview/search/ui/SearchActivity;)Landroid/support/v7/widget/RecyclerView;
|
|
.locals 0
|
|
|
|
.line 39
|
|
iget-object p0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->p:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic h(Lcom/moji/newliveview/search/ui/SearchActivity;)V
|
|
.locals 0
|
|
|
|
.line 39
|
|
invoke-direct {p0}, Lcom/moji/newliveview/search/ui/SearchActivity;->j()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic i(Lcom/moji/newliveview/search/ui/SearchActivity;)Landroid/widget/EditText;
|
|
.locals 0
|
|
|
|
.line 39
|
|
iget-object p0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->c:Landroid/widget/EditText;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static synthetic j(Lcom/moji/newliveview/search/ui/SearchActivity;)Lcom/moji/newliveview/search/controller/SearchHistoryController;
|
|
.locals 0
|
|
|
|
.line 39
|
|
iget-object p0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->r:Lcom/moji/newliveview/search/controller/SearchHistoryController;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private j()V
|
|
.locals 3
|
|
|
|
.line 221
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->r:Lcom/moji/newliveview/search/controller/SearchHistoryController;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/newliveview/search/controller/SearchHistoryController;->a()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
.line 222
|
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-lez v1, :cond_0
|
|
|
|
.line 223
|
|
iget-object v1, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->p:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
invoke-virtual {v1, v2}, Landroid/support/v7/widget/RecyclerView;->setVisibility(I)V
|
|
|
|
.line 224
|
|
iget-object v1, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->q:Lcom/moji/newliveview/search/ui/HistoryAdapter;
|
|
|
|
invoke-virtual {v1, v0}, Lcom/moji/newliveview/search/ui/HistoryAdapter;->a(Ljava/util/List;)V
|
|
|
|
.line 225
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->l:Landroid/support/v4/view/ViewPager;
|
|
|
|
const/4 v1, 0x4
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->setVisibility(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 227
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->p:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
const/16 v1, 0x8
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->setVisibility(I)V
|
|
|
|
.line 228
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->l:Landroid/support/v4/view/ViewPager;
|
|
|
|
invoke-virtual {v0, v2}, Landroid/support/v4/view/ViewPager;->setVisibility(I)V
|
|
|
|
.line 229
|
|
invoke-virtual {p0}, Lcom/moji/newliveview/search/ui/SearchActivity;->showEmptyView()V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private k()V
|
|
.locals 3
|
|
|
|
const-string v0, "input_method"
|
|
|
|
.line 249
|
|
invoke-virtual {p0, v0}, Lcom/moji/newliveview/search/ui/SearchActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/inputmethod/InputMethodManager;
|
|
|
|
iget-object v1, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->c:Landroid/widget/EditText;
|
|
|
|
.line 250
|
|
invoke-virtual {v1}, Landroid/widget/EditText;->getWindowToken()Landroid/os/IBinder;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x2
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected a()V
|
|
.locals 1
|
|
|
|
.line 69
|
|
sget v0, Lcom/moji/newliveview/R$layout;->activity_search_city_friends:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/newliveview/search/ui/SearchActivity;->setContentView(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected b()V
|
|
.locals 3
|
|
|
|
.line 74
|
|
sget v0, Lcom/moji/newliveview/R$id;->iv_back:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/newliveview/search/ui/SearchActivity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/ImageView;
|
|
|
|
iput-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->b:Landroid/widget/ImageView;
|
|
|
|
.line 75
|
|
sget v0, Lcom/moji/newliveview/R$id;->et_edittext:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/newliveview/search/ui/SearchActivity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/EditText;
|
|
|
|
iput-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->c:Landroid/widget/EditText;
|
|
|
|
.line 76
|
|
sget v0, Lcom/moji/newliveview/R$id;->iv_clear:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/newliveview/search/ui/SearchActivity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/ImageView;
|
|
|
|
iput-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->i:Landroid/widget/ImageView;
|
|
|
|
.line 77
|
|
sget v0, Lcom/moji/newliveview/R$id;->tv_search:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/newliveview/search/ui/SearchActivity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/widget/TextView;
|
|
|
|
iput-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->j:Landroid/widget/TextView;
|
|
|
|
.line 78
|
|
sget v0, Lcom/moji/newliveview/R$id;->viewpager:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/newliveview/search/ui/SearchActivity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/support/v4/view/ViewPager;
|
|
|
|
iput-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->l:Landroid/support/v4/view/ViewPager;
|
|
|
|
.line 79
|
|
sget v0, Lcom/moji/newliveview/R$id;->v_search_indicator:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/newliveview/search/ui/SearchActivity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/newliveview/search/ui/IndicatorView;
|
|
|
|
.line 80
|
|
sget v1, Lcom/moji/newliveview/R$array;->live_search:I
|
|
|
|
invoke-static {v1}, Lcom/moji/tool/DeviceTool;->b(I)[Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/newliveview/search/ui/IndicatorView;->setData([Ljava/lang/String;)V
|
|
|
|
.line 81
|
|
iget-object v1, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->l:Landroid/support/v4/view/ViewPager;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/newliveview/search/ui/IndicatorView;->setViewPager(Landroid/support/v4/view/ViewPager;)V
|
|
|
|
.line 83
|
|
new-instance v0, Lcom/moji/newliveview/search/ui/SearchCityLiveFragment;
|
|
|
|
invoke-direct {v0}, Lcom/moji/newliveview/search/ui/SearchCityLiveFragment;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->n:Lcom/moji/newliveview/search/ui/SearchCityLiveFragment;
|
|
|
|
.line 84
|
|
new-instance v0, Lcom/moji/newliveview/search/ui/SearchFriendFragment;
|
|
|
|
invoke-direct {v0}, Lcom/moji/newliveview/search/ui/SearchFriendFragment;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->o:Lcom/moji/newliveview/search/ui/SearchFriendFragment;
|
|
|
|
.line 85
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->m:Landroid/util/SparseArray;
|
|
|
|
iget-object v1, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->n:Lcom/moji/newliveview/search/ui/SearchCityLiveFragment;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v2, v1}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
|
|
|
|
.line 86
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->m:Landroid/util/SparseArray;
|
|
|
|
iget-object v1, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->o:Lcom/moji/newliveview/search/ui/SearchFriendFragment;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-virtual {v0, v2, v1}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V
|
|
|
|
.line 87
|
|
new-instance v0, Lcom/moji/newliveview/search/ui/SearchPagerAdapter;
|
|
|
|
invoke-virtual {p0}, Lcom/moji/newliveview/search/ui/SearchActivity;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->m:Landroid/util/SparseArray;
|
|
|
|
invoke-direct {v0, v1, v2}, Lcom/moji/newliveview/search/ui/SearchPagerAdapter;-><init>(Landroid/support/v4/app/FragmentManager;Landroid/util/SparseArray;)V
|
|
|
|
.line 88
|
|
iget-object v1, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->l:Landroid/support/v4/view/ViewPager;
|
|
|
|
invoke-virtual {v1, v0}, Landroid/support/v4/view/ViewPager;->setAdapter(Landroid/support/v4/view/PagerAdapter;)V
|
|
|
|
.line 90
|
|
new-instance v0, Lcom/moji/newliveview/search/controller/SearchHistoryController;
|
|
|
|
invoke-direct {v0}, Lcom/moji/newliveview/search/controller/SearchHistoryController;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->r:Lcom/moji/newliveview/search/controller/SearchHistoryController;
|
|
|
|
.line 91
|
|
sget v0, Lcom/moji/newliveview/R$id;->rv_history:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/newliveview/search/ui/SearchActivity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/support/v7/widget/RecyclerView;
|
|
|
|
iput-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->p:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
.line 92
|
|
new-instance v0, Lcom/moji/newliveview/search/ui/HistoryAdapter;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/newliveview/search/ui/HistoryAdapter;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->q:Lcom/moji/newliveview/search/ui/HistoryAdapter;
|
|
|
|
.line 93
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->q:Lcom/moji/newliveview/search/ui/HistoryAdapter;
|
|
|
|
iget-object v1, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->s:Lcom/moji/newliveview/search/ui/HistoryAdapter$OnUserHandlerListener;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/newliveview/search/ui/HistoryAdapter;->a(Lcom/moji/newliveview/search/ui/HistoryAdapter$OnUserHandlerListener;)V
|
|
|
|
.line 94
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->p:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
new-instance v1, Landroid/support/v7/widget/LinearLayoutManager;
|
|
|
|
invoke-direct {v1, p0}, Landroid/support/v7/widget/LinearLayoutManager;-><init>(Landroid/content/Context;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->setLayoutManager(Landroid/support/v7/widget/RecyclerView$LayoutManager;)V
|
|
|
|
.line 95
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->p:Landroid/support/v7/widget/RecyclerView;
|
|
|
|
iget-object v1, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->q:Lcom/moji/newliveview/search/ui/HistoryAdapter;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->setAdapter(Landroid/support/v7/widget/RecyclerView$Adapter;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected c()V
|
|
.locals 3
|
|
|
|
.line 101
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->b:Landroid/widget/ImageView;
|
|
|
|
new-instance v1, Lcom/moji/tool/drawable/MJStateDrawable;
|
|
|
|
sget v2, Lcom/moji/newliveview/R$drawable;->activity_imagegrid_back:I
|
|
|
|
invoke-direct {v1, v2}, Lcom/moji/tool/drawable/MJStateDrawable;-><init>(I)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 102
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->i:Landroid/widget/ImageView;
|
|
|
|
new-instance v1, Lcom/moji/tool/drawable/MJStateDrawable;
|
|
|
|
sget v2, Lcom/moji/newliveview/R$drawable;->activity_upload_photo_search_clear:I
|
|
|
|
invoke-direct {v1, v2}, Lcom/moji/tool/drawable/MJStateDrawable;-><init>(I)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 103
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->j:Landroid/widget/TextView;
|
|
|
|
const v1, -0xbd6b16
|
|
|
|
invoke-static {v1}, Lcom/moji/tool/drawable/MJStateColor;->a(I)Landroid/content/res/ColorStateList;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 104
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->b:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
.line 105
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->i:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
.line 106
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->j:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
.line 107
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->c:Landroid/widget/EditText;
|
|
|
|
new-instance v1, Lcom/moji/newliveview/search/ui/SearchActivity$1;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/newliveview/search/ui/SearchActivity$1;-><init>(Lcom/moji/newliveview/search/ui/SearchActivity;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/EditText;->setOnKeyListener(Landroid/view/View$OnKeyListener;)V
|
|
|
|
.line 118
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->c:Landroid/widget/EditText;
|
|
|
|
new-instance v1, Lcom/moji/newliveview/search/ui/SearchActivity$2;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/newliveview/search/ui/SearchActivity$2;-><init>(Lcom/moji/newliveview/search/ui/SearchActivity;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V
|
|
|
|
.line 169
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->l:Landroid/support/v4/view/ViewPager;
|
|
|
|
new-instance v1, Lcom/moji/newliveview/search/ui/SearchActivity$3;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/newliveview/search/ui/SearchActivity$3;-><init>(Lcom/moji/newliveview/search/ui/SearchActivity;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v4/view/ViewPager;->addOnPageChangeListener(Landroid/support/v4/view/ViewPager$OnPageChangeListener;)V
|
|
|
|
const-string v0, "input_method"
|
|
|
|
.line 208
|
|
invoke-virtual {p0, v0}, Lcom/moji/newliveview/search/ui/SearchActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/view/inputmethod/InputMethodManager;
|
|
|
|
.line 210
|
|
invoke-virtual {v0}, Landroid/view/inputmethod/InputMethodManager;->isActive()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x2
|
|
|
|
.line 211
|
|
invoke-virtual {v0, v1, v2}, Landroid/view/inputmethod/InputMethodManager;->toggleSoftInput(II)V
|
|
|
|
.line 215
|
|
:cond_0
|
|
invoke-direct {p0}, Lcom/moji/newliveview/search/ui/SearchActivity;->j()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected g()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getSearchKey()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 292
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->k:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public onClick(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
.line 255
|
|
invoke-virtual {p1}, Landroid/view/View;->getId()I
|
|
|
|
move-result p1
|
|
|
|
.line 256
|
|
sget v0, Lcom/moji/newliveview/R$id;->iv_back:I
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
.line 257
|
|
invoke-direct {p0}, Lcom/moji/newliveview/search/ui/SearchActivity;->k()V
|
|
|
|
.line 258
|
|
invoke-virtual {p0}, Lcom/moji/newliveview/search/ui/SearchActivity;->finish()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 259
|
|
:cond_0
|
|
sget v0, Lcom/moji/newliveview/R$id;->iv_clear:I
|
|
|
|
if-ne p1, v0, :cond_1
|
|
|
|
.line 260
|
|
iget-object p1, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->c:Landroid/widget/EditText;
|
|
|
|
const-string v0, ""
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 261
|
|
:cond_1
|
|
sget v0, Lcom/moji/newliveview/R$id;->tv_search:I
|
|
|
|
if-ne p1, v0, :cond_3
|
|
|
|
.line 262
|
|
iget-object p1, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->c:Landroid/widget/EditText;
|
|
|
|
invoke-virtual {p1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
.line 263
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
.line 264
|
|
iget-object p1, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->c:Landroid/widget/EditText;
|
|
|
|
invoke-virtual {p1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Lcom/moji/newliveview/search/ui/SearchActivity;->a(Ljava/lang/String;)V
|
|
|
|
.line 266
|
|
:cond_2
|
|
invoke-direct {p0}, Lcom/moji/newliveview/search/ui/SearchActivity;->k()V
|
|
|
|
:cond_3
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onCreate(Landroid/os/Bundle;)V
|
|
.locals 0
|
|
.param p1 # Landroid/os/Bundle;
|
|
.annotation build Landroid/support/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 58
|
|
invoke-super {p0, p1}, Lcom/moji/newliveview/base/BaseLiveViewActivity;->onCreate(Landroid/os/Bundle;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public showClearHistoryDialog()V
|
|
.locals 2
|
|
|
|
.line 319
|
|
new-instance v0, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 320
|
|
sget v1, Lcom/moji/newliveview/R$string;->crop__cancel:I
|
|
|
|
.line 321
|
|
invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->e(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/moji/newliveview/search/ui/SearchActivity$5;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/newliveview/search/ui/SearchActivity$5;-><init>(Lcom/moji/newliveview/search/ui/SearchActivity;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->b(Lcom/moji/dialog/control/MJDialogDefaultControl$SingleButtonCallback;)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/moji/newliveview/R$string;->crop__done:I
|
|
|
|
.line 326
|
|
invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->d(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/moji/newliveview/search/ui/SearchActivity$4;
|
|
|
|
invoke-direct {v1, p0}, Lcom/moji/newliveview/search/ui/SearchActivity$4;-><init>(Lcom/moji/newliveview/search/ui/SearchActivity;)V
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->a(Lcom/moji/dialog/control/MJDialogDefaultControl$SingleButtonCallback;)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/moji/newliveview/R$string;->are_you_sure_clear_history:I
|
|
|
|
.line 336
|
|
invoke-virtual {v0, v1}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->b(I)Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
.line 337
|
|
invoke-virtual {v0}, Lcom/moji/dialog/control/MJDialogDefaultControl$Builder;->a()Lcom/moji/dialog/MJDialog;
|
|
|
|
move-result-object v0
|
|
|
|
.line 338
|
|
invoke-virtual {v0}, Lcom/moji/dialog/MJDialog;->show()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public showEmptyView()V
|
|
.locals 2
|
|
|
|
.line 235
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->l:Landroid/support/v4/view/ViewPager;
|
|
|
|
invoke-virtual {v0}, Landroid/support/v4/view/ViewPager;->getCurrentItem()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 237
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->n:Lcom/moji/newliveview/search/ui/SearchCityLiveFragment;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/newliveview/search/ui/SearchCityLiveFragment;->a(Z)V
|
|
|
|
.line 238
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->n:Lcom/moji/newliveview/search/ui/SearchCityLiveFragment;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/newliveview/search/ui/SearchCityLiveFragment;->d()V
|
|
|
|
.line 239
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->n:Lcom/moji/newliveview/search/ui/SearchCityLiveFragment;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/newliveview/search/ui/SearchCityLiveFragment;->g()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 242
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->o:Lcom/moji/newliveview/search/ui/SearchFriendFragment;
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/newliveview/search/ui/SearchFriendFragment;->a(Z)V
|
|
|
|
.line 243
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->o:Lcom/moji/newliveview/search/ui/SearchFriendFragment;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/newliveview/search/ui/SearchFriendFragment;->d()V
|
|
|
|
.line 244
|
|
iget-object v0, p0, Lcom/moji/newliveview/search/ui/SearchActivity;->o:Lcom/moji/newliveview/search/ui/SearchFriendFragment;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/newliveview/search/ui/SearchFriendFragment;->g()V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|