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

314 lines
7.7 KiB
Smali

.class public Lcom/moji/mjweather/feed/ZakerRootActivity;
.super Lcom/moji/mjweather/feed/FeedBaseFragmentActivity;
.source "ZakerRootActivity.java"
# annotations
.annotation build Lcom/moji/router/annotation/Router;
.end annotation
# static fields
.field public static final HOMEPAGE_FEED_ENTRY_REDDOT:Ljava/lang/String; = "homepage_feed_entry_reddot"
.field public static final TARGET_CHANNEL_CATEGORYID:Ljava/lang/String; = "target_channel_categoryid"
.field public static final TARGET_CHANNEL_CATEGORY_NAME:Ljava/lang/String; = "target_channel_category_name"
# instance fields
.field private a:Lcom/moji/mjweather/feed/FeedChannelProxy;
.field private b:Landroid/view/View;
.field private c:J
# direct methods
.method public constructor <init>()V
.locals 0
.line 23
invoke-direct {p0}, Lcom/moji/mjweather/feed/FeedBaseFragmentActivity;-><init>()V
return-void
.end method
.method private a(Z)Z
.locals 0
if-eqz p1, :cond_0
.line 118
invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayer;->o()Z
move-result p1
return p1
.line 120
:cond_0
invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayer;->t()V
const/4 p1, 0x0
return p1
.end method
# virtual methods
.method protected a()V
.locals 3
const/4 v0, 0x1
.line 32
invoke-virtual {p0, v0}, Lcom/moji/mjweather/feed/ZakerRootActivity;->c(Z)V
.line 33
invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
move-result-object v0
sget v1, Lcom/moji/mjweather/feed/R$layout;->activity_zaker_root:I
const/4 v2, 0x0
invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Lcom/moji/mjweather/feed/ZakerRootActivity;->b:Landroid/view/View;
.line 34
iget-object v0, p0, Lcom/moji/mjweather/feed/ZakerRootActivity;->b:Landroid/view/View;
invoke-virtual {p0, v0}, Lcom/moji/mjweather/feed/ZakerRootActivity;->setContentView(Landroid/view/View;)V
return-void
.end method
.method protected c()V
.locals 3
.line 39
new-instance v0, Lcom/moji/mjweather/feed/FeedChannelProxy;
invoke-virtual {p0}, Lcom/moji/mjweather/feed/ZakerRootActivity;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;
move-result-object v1
sget-object v2, Lcom/moji/launchserver/AdCommonInterface$AdPosition;->POS_FEED_STREAM_INFORMATION:Lcom/moji/launchserver/AdCommonInterface$AdPosition;
invoke-direct {v0, p0, v1, v2}, 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/ZakerRootActivity;->a:Lcom/moji/mjweather/feed/FeedChannelProxy;
.line 40
iget-object v0, p0, Lcom/moji/mjweather/feed/ZakerRootActivity;->a:Lcom/moji/mjweather/feed/FeedChannelProxy;
iget-object v1, p0, Lcom/moji/mjweather/feed/ZakerRootActivity;->b:Landroid/view/View;
invoke-virtual {v0, v1}, Lcom/moji/mjweather/feed/FeedChannelProxy;->b(Landroid/view/View;)V
return-void
.end method
.method protected e()V
.locals 0
return-void
.end method
.method protected onActivityResult(IILandroid/content/Intent;)V
.locals 1
.line 81
invoke-super {p0, p1, p2, p3}, Lcom/moji/mjweather/feed/FeedBaseFragmentActivity;->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 88
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 89
invoke-virtual {p3, p2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
.line 90
iget-object p3, p0, Lcom/moji/mjweather/feed/ZakerRootActivity;->a: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 onBackPressed()V
.locals 2
const/4 v0, 0x1
.line 105
:try_start_0
invoke-direct {p0, v0}, Lcom/moji/mjweather/feed/ZakerRootActivity;->a(Z)Z
move-result v0
if-eqz v0, :cond_0
return-void
.line 108
:cond_0
invoke-super {p0}, Lcom/moji/mjweather/feed/FeedBaseFragmentActivity;->onBackPressed()V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v0
const-string v1, "video"
.line 111
invoke-static {v1, v0}, Lcom/moji/tool/log/MJLogger;->a(Ljava/lang/String;Ljava/lang/Throwable;)V
:goto_0
return-void
.end method
.method protected onDestroy()V
.locals 1
.line 97
invoke-super {p0}, Lcom/moji/mjweather/feed/FeedBaseFragmentActivity;->onDestroy()V
.line 98
iget-object v0, p0, Lcom/moji/mjweather/feed/ZakerRootActivity;->a:Lcom/moji/mjweather/feed/FeedChannelProxy;
invoke-virtual {v0}, Lcom/moji/mjweather/feed/FeedChannelProxy;->b()V
return-void
.end method
.method protected onPause()V
.locals 5
.line 73
invoke-super {p0}, Lcom/moji/mjweather/feed/FeedBaseFragmentActivity;->onPause()V
.line 74
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
iget-wide v2, p0, Lcom/moji/mjweather/feed/ZakerRootActivity;->c:J
sub-long/2addr v0, v2
.line 75
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, "2"
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;
.line 76
invoke-static {}, Lfm/jiecao/jcvideoplayer_lib/JCVideoPlayer;->s()V
return-void
.end method
.method protected onResume()V
.locals 2
.line 64
invoke-super {p0}, Lcom/moji/mjweather/feed/FeedBaseFragmentActivity;->onResume()V
.line 65
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
iput-wide v0, p0, Lcom/moji/mjweather/feed/ZakerRootActivity;->c:J
const/4 v0, 0x0
.line 66
invoke-direct {p0, v0}, Lcom/moji/mjweather/feed/ZakerRootActivity;->a(Z)Z
return-void
.end method
.method protected p_()V
.locals 5
const-string v0, ""
.line 53
invoke-virtual {p0}, Lcom/moji/mjweather/feed/ZakerRootActivity;->getIntent()Landroid/content/Intent;
move-result-object v1
const/4 v2, 0x0
const/16 v3, 0x24
if-eqz v1, :cond_0
const-string v0, "target_channel_categoryid"
.line 55
invoke-virtual {v1, v0, v3}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
move-result v3
const-string v0, "target_channel_category_name"
.line 56
invoke-virtual {v1, v0}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v4, "homepage_feed_entry_reddot"
.line 57
invoke-virtual {v1, v4, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
move-result v2
.line 59
:cond_0
iget-object v1, p0, Lcom/moji/mjweather/feed/ZakerRootActivity;->a:Lcom/moji/mjweather/feed/FeedChannelProxy;
invoke-virtual {v1, v3, v0, v2}, Lcom/moji/mjweather/feed/FeedChannelProxy;->a(ILjava/lang/String;I)V
return-void
.end method