Weather/smali_classes2/com/moji/mjweather/feed/ZakerRootFragment.smali
2021-05-10 10:13:34 +02:00

213 lines
5.6 KiB
Smali

.class public Lcom/moji/mjweather/feed/ZakerRootFragment;
.super Lcom/moji/base/MJFragment;
.source "ZakerRootFragment.java"
# instance fields
.field private b:Lcom/moji/mjweather/feed/FeedChannelProxy;
.field private c:Landroid/view/View;
.field private d:J
# direct methods
.method public constructor <init>()V
.locals 0
.line 19
invoke-direct {p0}, Lcom/moji/base/MJFragment;-><init>()V
return-void
.end method
# virtual methods
.method protected a()V
.locals 4
.line 35
invoke-virtual {p0}, Lcom/moji/mjweather/feed/ZakerRootFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
move-result-object v0
if-eqz v0, :cond_0
.line 36
new-instance v0, Lcom/moji/mjweather/feed/FeedChannelProxy;
invoke-virtual {p0}, Lcom/moji/mjweather/feed/ZakerRootFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
move-result-object v1
invoke-virtual {p0}, Lcom/moji/mjweather/feed/ZakerRootFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;
move-result-object v2
invoke-virtual {v2}, Landroid/support/v4/app/FragmentActivity;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;
move-result-object v2
sget-object v3, Lcom/moji/launchserver/AdCommonInterface$AdPosition;->POS_FEED_STREAM_INFORMATION:Lcom/moji/launchserver/AdCommonInterface$AdPosition;
invoke-direct {v0, v1, v2, v3}, Lcom/moji/mjweather/feed/FeedChannelProxy;-><init>(Landroid/content/Context;Landroid/support/v4/app/FragmentManager;Lcom/moji/launchserver/AdCommonInterface$AdPosition;)V
iput-object v0, p0, Lcom/moji/mjweather/feed/ZakerRootFragment;->b:Lcom/moji/mjweather/feed/FeedChannelProxy;
.line 37
iget-object v0, p0, Lcom/moji/mjweather/feed/ZakerRootFragment;->b:Lcom/moji/mjweather/feed/FeedChannelProxy;
iget-object v1, p0, Lcom/moji/mjweather/feed/ZakerRootFragment;->c:Landroid/view/View;
invoke-virtual {v0, v1}, Lcom/moji/mjweather/feed/FeedChannelProxy;->b(Landroid/view/View;)V
:cond_0
return-void
.end method
.method protected b()V
.locals 4
const-string v0, ""
.line 46
iget-object v1, p0, Lcom/moji/mjweather/feed/ZakerRootFragment;->b:Lcom/moji/mjweather/feed/FeedChannelProxy;
const/16 v2, 0x24
const/4 v3, 0x0
invoke-virtual {v1, v2, v0, v3}, Lcom/moji/mjweather/feed/FeedChannelProxy;->a(ILjava/lang/String;I)V
return-void
.end method
.method public onActivityResult(IILandroid/content/Intent;)V
.locals 1
.line 66
invoke-super {p0, p1, p2, p3}, Lcom/moji/base/MJFragment;->onActivityResult(IILandroid/content/Intent;)V
const/4 v0, -0x1
if-eq p2, v0, :cond_0
return-void
:cond_0
const/16 p2, 0xa
if-ne p1, p2, :cond_1
if-eqz p3, :cond_1
const-string p1, "target_channel_categoryid"
const/16 p2, 0x24
.line 72
invoke-virtual {p3, p1, p2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
move-result p1
const-string p2, "target_channel_category_name"
.line 73
invoke-virtual {p3, p2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
.line 74
iget-object p3, p0, Lcom/moji/mjweather/feed/ZakerRootFragment;->b:Lcom/moji/mjweather/feed/FeedChannelProxy;
invoke-virtual {p3, p1, p2}, Lcom/moji/mjweather/feed/FeedChannelProxy;->a(ILjava/lang/String;)V
:cond_1
return-void
.end method
.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
.locals 0
.line 27
sget p2, Lcom/moji/mjweather/feed/R$layout;->fragment_zaker_root:I
const/4 p3, 0x0
invoke-virtual {p1, p2, p3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object p1
iput-object p1, p0, Lcom/moji/mjweather/feed/ZakerRootFragment;->c:Landroid/view/View;
.line 28
invoke-virtual {p0}, Lcom/moji/mjweather/feed/ZakerRootFragment;->a()V
.line 29
invoke-virtual {p0}, Lcom/moji/mjweather/feed/ZakerRootFragment;->b()V
.line 30
iget-object p1, p0, Lcom/moji/mjweather/feed/ZakerRootFragment;->c:Landroid/view/View;
return-object p1
.end method
.method public onDestroy()V
.locals 1
.line 81
invoke-super {p0}, Lcom/moji/base/MJFragment;->onDestroy()V
.line 82
iget-object v0, p0, Lcom/moji/mjweather/feed/ZakerRootFragment;->b:Lcom/moji/mjweather/feed/FeedChannelProxy;
invoke-virtual {v0}, Lcom/moji/mjweather/feed/FeedChannelProxy;->b()V
return-void
.end method
.method public onPause()V
.locals 5
.line 59
invoke-super {p0}, Lcom/moji/base/MJFragment;->onPause()V
.line 60
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
iget-wide v2, p0, Lcom/moji/mjweather/feed/ZakerRootFragment;->d:J
sub-long/2addr v0, v2
.line 61
invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;
move-result-object v2
sget-object v3, Lcom/moji/statistics/EVENT_TAG;->FEEDS_CATEGORYL_DURATION:Lcom/moji/statistics/EVENT_TAG;
const-string v4, ""
invoke-virtual {v2, v3, v4, v0, v1}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;J)Lcom/moji/statistics/EventManager;
return-void
.end method
.method public onResume()V
.locals 2
.line 51
invoke-super {p0}, Lcom/moji/base/MJFragment;->onResume()V
.line 52
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
iput-wide v0, p0, Lcom/moji/mjweather/feed/ZakerRootFragment;->d:J
return-void
.end method