正在查看: Bhakti v5.4.0 应用的 ReelsActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Bhakti v5.4.0 应用的 ReelsActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.vlv.aravali.reels.view.v1;
import Am.AbstractC0009d;
import Am.B;
import Am.C;
import Am.C0010e;
import Am.C0011f;
import Am.C0012g;
import Am.C0015j;
import Am.C0018m;
import Am.C0022q;
import Am.C0023s;
import Am.C0026v;
import Am.G;
import Am.H;
import Am.I;
import Am.y;
import B4.v;
import Bi.k;
import Dm.c;
import Dm.h;
import Kp.p;
import Ml.C0;
import Np.D0;
import Np.F0;
import Np.G0;
import Np.k0;
import Np.m0;
import Qn.e;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.media.AudioManager;
import android.net.Uri;
import android.os.Bundle;
import android.view.Window;
import androidx.datastore.preferences.protobuf.o;
import androidx.lifecycle.i0;
import androidx.lifecycle.q0;
import b3.X;
import b3.l0;
import cm.C1107k0;
import com.vlv.aravali.KukuFMApplication;
import com.vlv.aravali.coins.ui.fragments.T0;
import com.vlv.aravali.coins.ui.fragments.UnlockEpisodeBottomSheet;
import com.vlv.aravali.common.models.CUPart;
import com.vlv.aravali.common.models.Show;
import com.vlv.aravali.common.models.User;
import com.vlv.aravali.common.models.coins.Pack;
import com.vlv.aravali.common.models.payments.PlanDetailItem;
import com.vlv.aravali.common.models.payments.juspay.SubscriptionPlan;
import com.vlv.aravali.common.models.vip.Offer;
import com.vlv.aravali.master.ui.MasterActivity;
import com.vlv.aravali.model.ByPassLoginData;
import com.vlv.aravali.payments.common.data.SubscriptionMeta;
import com.vlv.aravali.playerMedia3.ui.PlayerBaseActivity;
import com.vlv.aravali.playerMedia3.ui.models.CommentScreenEvent$CheckLogin;
import com.vlv.aravali.playerMedia3.ui.models.CommentScreenEvent$OpenProfilePage;
import com.vlv.aravali.views.activities.BaseActivity;
import ij.i;
import io.sentry.config.d;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.J;
import kp.b;
import mp.m;
import mp.q;
import nl.C2198b;
import nl.a;
import qg.j;
import s4.x;
@Metadata
public final class ReelsActivity extends Hilt_ReelsActivity {
public static final int $stable = 8;
private final k0 _shouldEnterPipFlow;
private boolean isMLTShown;
private boolean isServedMltOnBackPress;
private boolean isServedMltOnScroll;
private boolean isUnlockDialogVisible;
private SubscriptionMeta mSourceMeta;
private final D0 shouldEnterPipFlow;
private final m reelsViewModel$delegate = new v(J.a(h.class), new I(this, 1), new I(this, 0), new I(this, 2));
private final m episodeQueueViewModel$delegate = new v(J.a(C1107k0.class), new I(this, 3), new C0010e(this, 1), new I(this, 4));
private String source = "";
public ReelsActivity() {
F0 a = G0.a(Boolean.TRUE);
this._shouldEnterPipFlow = a;
this.shouldEnterPipFlow = new m0(a);
}
private final void buyPack(Pack pack, Show show, String str, boolean z) {
p.w(i0.i(this), (CoroutineContext) null, (Kp.J) null, new C0011f(pack, show, this, str, z, null), 3);
}
public static void buyPack$default(ReelsActivity reelsActivity, Pack pack, Show show, String str, boolean z, int i, Object obj) {
if ((i & 8) != 0) {
z = false;
}
reelsActivity.buyPack(pack, show, str, z);
}
private final void buySubscriptionPack(PlanDetailItem planDetailItem) {
p.w(i0.i(this), (CoroutineContext) null, (Kp.J) null, new C0012g(this, planDetailItem, null), 3);
}
public static void dismiss$default(ReelsActivity reelsActivity, String str, int i, Object obj) {
if ((i & 1) != 0) {
str = null;
}
reelsActivity.dismiss(str);
}
public static void doPurchaseCoinClicked$default(ReelsActivity reelsActivity, String str, int i, Integer num, boolean z, int i2, Object obj) {
if ((i2 & 2) != 0) {
i = 0;
}
if ((i2 & 4) != 0) {
num = null;
}
if ((i2 & 8) != 0) {
z = false;
}
reelsActivity.doPurchaseCoinClicked(str, i, num, z);
}
private final void doWhenSubscribeClicked(String str, int i) {
Integer id;
Integer id2;
String str2;
Pair pair = e.g;
if (pair != null && (str2 = (String) pair.b) != null) {
e.c = Uri.parse(str2);
}
k g = o.g(KukuFMApplication.x, "view_all_plans_clicked", "source", "reels");
g.c(str, "player_source");
g.g(false);
Show show = (Show) getPlayingShowFlow().getValue();
int i2 = -1;
Integer valueOf = Integer.valueOf((show == null || (id2 = show.getId()) == null) ? -1 : id2.intValue());
CUPart cUPart = (CUPart) getPlayingEpisodeFlow().getValue();
if (cUPart != null && (id = cUPart.getId()) != null) {
i2 = id.intValue();
}
Integer valueOf2 = Integer.valueOf(i2);
Show show2 = (Show) getPlayingShowFlow().getValue();
SubscriptionMeta subscriptionMeta = new SubscriptionMeta(str, valueOf, valueOf2, null, null, null, show2 != null ? show2.getImage() : null, null, null, null, Integer.valueOf(i), null, null, false, null, null, null, null, null, 523192, null);
b bVar = a.a;
a.b(new C2198b(i.NAVIGATE_TO_SUBSCRIPTION_FLOW, subscriptionMeta));
dismiss$default(this, null, 1, null);
}
public static void doWhenSubscribeClicked$default(ReelsActivity reelsActivity, String str, int i, int i2, Object obj) {
if ((i2 & 2) != 0) {
i = 0;
}
reelsActivity.doWhenSubscribeClicked(str, i);
}
private final void downloadEvent(String str, Show show, CUPart cUPart) {
String str2;
Integer id;
Ai.p pVar = KukuFMApplication.x;
k kVar = new k(pVar.B().d());
kVar.k(str);
Object obj = "";
if (show == null || (str2 = show.getTitle()) == null) {
str2 = "";
}
kVar.c(str2, "show_title");
if (show != null && (id = show.getId()) != null) {
obj = id;
}
kVar.c(obj, "show_id");
kVar.c(cUPart != null ? cUPart.getId() : null, "episode_id");
User z = pVar.B().h().z();
kVar.c(z != null ? z.getId() : null, "user_id");
Integer id2 = show != null ? show.getId() : null;
Show show2 = (Show) getPlayingShowFlow().getValue();
kVar.c(Boolean.valueOf(Intrinsics.c(id2, show2 != null ? show2.getId() : null)), "episode_play_status");
kVar.d();
}
public static void downloadEvent$default(ReelsActivity reelsActivity, String str, Show show, CUPart cUPart, int i, Object obj) {
if ((i & 2) != 0) {
show = null;
}
if ((i & 4) != 0) {
cUPart = null;
}
reelsActivity.downloadEvent(str, show, cUPart);
}
public static final q0 episodeQueueViewModel_delegate$lambda$1(ReelsActivity reelsActivity) {
return new ol.i(J.a(C1107k0.class), new C0010e(reelsActivity, 0));
}
public static final C1107k0 episodeQueueViewModel_delegate$lambda$1$lambda$0(ReelsActivity reelsActivity) {
Context applicationContext = reelsActivity.getApplicationContext();
Intrinsics.checkNotNullExpressionValue(applicationContext, "getApplicationContext(...)");
return new C1107k0(new C0(applicationContext), reelsActivity.getIntent().getIntExtra("show_id", 0), "reels");
}
public final void fetchMoreLikeThisData(String str, int i) {
h reelsViewModel = getReelsViewModel();
reelsViewModel.getClass();
Intrinsics.checkNotNullParameter(str, "from");
p.w(i0.k(reelsViewModel), (CoroutineContext) null, (Kp.J) null, new c(reelsViewModel, i, str, null), 3);
}
public final C1107k0 getEpisodeQueueViewModel() {
return (C1107k0) this.episodeQueueViewModel$delegate.getValue();
}
public final h getReelsViewModel() {
return (h) this.reelsViewModel$delegate.getValue();
}
public final void handleCommentsEvent(Zl.a aVar) {
if (aVar instanceof CommentScreenEvent$CheckLogin) {
if (BaseActivity.loginRequest$default(this, new ByPassLoginData("reels", null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 131070, null), "reels", null, 4, null)) {
((CommentScreenEvent$CheckLogin) aVar).getIfLoggedIn().invoke();
}
} else {
if (!(aVar instanceof CommentScreenEvent$OpenProfilePage)) {
throw new q();
}
b bVar = a.a;
a.b(new C2198b(i.OPEN_OTHER_PROFILE, Integer.valueOf(((CommentScreenEvent$OpenProfilePage) aVar).getProfileId())));
dismiss$default(this, null, 1, null);
}
}
public final void handleEpisodeQueueEvent(pn.AbstractC2258c r14) {
throw new UnsupportedOperationException("Method not decompiled: com.vlv.aravali.reels.view.v1.ReelsActivity.handleEpisodeQueueEvent(pn.c):void");
}
public final void handleEvent(AbstractC0009d abstractC0009d) {
SubscriptionPlan subscriptionPlan;
b3.m0 G0;
x controller;
b3.m0 G02;
x controller2;
if (abstractC0009d instanceof ReelScreenEvent$SeekToReel) {
k r = d.r(KukuFMApplication.x, "reel_scrolled");
ReelScreenEvent$SeekToReel reelScreenEvent$SeekToReel = (ReelScreenEvent$SeekToReel) abstractC0009d;
r.c(Integer.valueOf(reelScreenEvent$SeekToReel.getReelIndex()), "index");
r.c(Integer.valueOf(reelScreenEvent$SeekToReel.getReelId()), "episode_id");
Show show = (Show) getPlayingShowFlow().getValue();
r.c(show != null ? show.getId() : null, "show_id");
r.d();
x controller3 = getController();
if (controller3 == null || controller3.u0() != reelScreenEvent$SeekToReel.getReelIndex()) {
PlayerBaseActivity.seekToPosition$default(this, reelScreenEvent$SeekToReel.getReelIndex(), 0L, null, null, 12, null);
return;
}
return;
}
if (abstractC0009d instanceof ReelScreenEvent$SeekToPos) {
seekToPosition(((ReelScreenEvent$SeekToPos) abstractC0009d).getSeekToPos(), "reels", "reels");
return;
}
if (abstractC0009d instanceof ReelScreenEvent$AttachPlayer) {
((ReelScreenEvent$AttachPlayer) abstractC0009d).getPlayerView().setPlayer(getController());
x controller4 = getController();
if (controller4 == null || (G02 = controller4.G0()) == null || (controller2 = getController()) == null) {
return;
}
l0 a = G02.a();
a.l(2, false);
controller2.p0(a.b());
return;
}
if (abstractC0009d instanceof ReelScreenEvent$DetachPlayer) {
((ReelScreenEvent$DetachPlayer) abstractC0009d).getPlayerView().setPlayer((X) null);
x controller5 = getController();
if (controller5 == null || (G0 = controller5.G0()) == null || (controller = getController()) == null) {
return;
}
l0 a2 = G0.a();
a2.l(2, true);
controller.p0(a2.b());
return;
}
if (abstractC0009d instanceof ReelScreenEvent$ResumeOrPause) {
PlayerBaseActivity.resumeOrPause$default(this, "reels", "reels", null, 4, null);
return;
}
if (abstractC0009d instanceof ReelScreenEvent$OpenCoinPack) {
ReelScreenEvent$OpenCoinPack reelScreenEvent$OpenCoinPack = (ReelScreenEvent$OpenCoinPack) abstractC0009d;
Pack pack = reelScreenEvent$OpenCoinPack.getPack();
if (pack != null) {
k r2 = d.r(KukuFMApplication.x, "coin_paywall_purchase_clicked");
Show show2 = (Show) getPlayingShowFlow().getValue();
r2.c(show2 != null ? show2.getId() : null, "show_id");
CUPart cUPart = (CUPart) getPlayingEpisodeFlow().getValue();
r2.c(cUPart != null ? cUPart.getId() : null, "episode_id");
r2.c(String.valueOf(pack.getSellingPrice()), "type");
Show show3 = (Show) getPlayingShowFlow().getValue();
r2.c(show3 != null ? Boolean.valueOf(show3.isReel()) : null, "is_reel");
r2.d();
pause("reels", "reels");
buyPack$default(this, pack, (Show) getPlayingShowFlow().getValue(), reelScreenEvent$OpenCoinPack.getEventSource(), false, 8, null);
return;
}
return;
}
if (abstractC0009d instanceof ReelScreenEvent$OpenSubscriptionPack) {
Pack pack2 = ((ReelScreenEvent$OpenSubscriptionPack) abstractC0009d).getPack();
if (pack2 == null || (subscriptionPlan = pack2.getSubscriptionPlan()) == null) {
return;
}
buySubscriptionPack(t8.i.P(subscriptionPlan));
return;
}
if (abstractC0009d instanceof ReelScreenEvent$OpenCoinsPage) {
k r3 = d.r(KukuFMApplication.x, "coin_paywall_purchase_clicked");
Show show4 = (Show) getPlayingShowFlow().getValue();
r3.c(show4 != null ? show4.getId() : null, "show_id");
CUPart cUPart2 = (CUPart) getPlayingEpisodeFlow().getValue();
r3.c(cUPart2 != null ? cUPart2.getId() : null, "episode_id");
Show show5 = (Show) getPlayingShowFlow().getValue();
r3.c(show5 != null ? Boolean.valueOf(show5.isReel()) : null, "is_reel");
r3.d();
pause("reels", "reels");
doPurchaseCoinClicked$default(this, ((ReelScreenEvent$OpenCoinsPage) abstractC0009d).getEventSource(), 0, null, false, 14, null);
return;
}
if (!(abstractC0009d instanceof ReelScreenEvent$OpenShow)) {
if (abstractC0009d instanceof ReelScreenEvent$ShareShow) {
Show show6 = ((ReelScreenEvent$ShareShow) abstractC0009d).getShow();
if (show6 != null) {
BaseActivity.shareShow$default(this, show6, 2131558511, null, false, 8, null);
}
o.r(KukuFMApplication.x, "reels_share_clicked");
return;
}
return;
}
Show show7 = ((ReelScreenEvent$OpenShow) abstractC0009d).getShow();
if (show7 == null) {
return;
}
b bVar = a.a;
i iVar = i.NAVIGATE_TO_NEW_SHOW_SCREEN;
String slug = show7.getSlug();
if (slug == null) {
slug = "";
}
Integer id = show7.getId();
a.b(new C2198b(iVar, slug, Integer.valueOf(id != null ? id.intValue() : 0), "reels_go_to_show", "reels"));
dismiss(show7.getUri());
}
private final void observeFlows() {
p.w(i0.i(this), (CoroutineContext) null, (Kp.J) null, new C0015j(this, null), 3);
Object systemService = getSystemService("audio");
Intrinsics.f(systemService, "null cannot be cast to non-null type android.media.AudioManager");
p.w(i0.i(this), (CoroutineContext) null, (Kp.J) null, new C0018m(this, (AudioManager) systemService, null), 3);
p.w(i0.i(this), (CoroutineContext) null, (Kp.J) null, new C0022q(this, null), 3);
p.w(i0.i(this), (CoroutineContext) null, (Kp.J) null, new C0023s(this, null), 3);
p.w(i0.i(this), (CoroutineContext) null, (Kp.J) null, new C0026v(this, null), 3);
p.w(i0.i(this), (CoroutineContext) null, (Kp.J) null, new y(this, null), 3);
p.w(i0.i(this), (CoroutineContext) null, (Kp.J) null, new B(this, null), 3);
}
private final void openMobileAds(Integer num, String str, Integer num2) {
p.w(i0.i(this), (CoroutineContext) null, (Kp.J) null, new H(num, str, num2, this, null), 3);
}
public final void unlockEpisode(Show show, CUPart cUPart) {
if (d.t(KukuFMApplication.x) == null || this.isUnlockDialogVisible) {
return;
}
T0 t0 = UnlockEpisodeBottomSheet.Companion;
Integer id = show.getId();
int intValue = id != null ? id.intValue() : 0;
Integer id2 = cUPart.getId();
Integer valueOf = Integer.valueOf(id2 != null ? id2.intValue() : 0);
Offer unlockOffer = show.getUnlockOffer();
t0.getClass();
UnlockEpisodeBottomSheet a = T0.a("reels", intValue, valueOf, unlockOffer);
a.registerDialogActionsInterface(new j(this, 2));
this.isUnlockDialogVisible = true;
a.show(getSupportFragmentManager(), UnlockEpisodeBottomSheet.TAG);
}
public final void dismiss(String str) {
PlayerBaseActivity.pause$default(this, "reels_back_press", null, 2, null);
if (isTaskRoot()) {
Intent intent = new Intent((Context) this, (Class<?>) MasterActivity.class);
if (str != null) {
intent.setData(D8.i.M0(str));
}
startActivity(intent);
}
finish();
overridePendingTransition(0, 2130772057);
}
public final void doPurchaseCoinClicked(String str, int i, Integer num, boolean z) {
Integer id;
String str2;
Intrinsics.checkNotNullParameter(str, "eventSource");
Pair pair = e.g;
if (pair != null && (str2 = (String) pair.b) != null) {
e.c = Uri.parse(str2);
}
k g = o.g(KukuFMApplication.x, "view_all_plans_clicked", "source", "reels");
g.c(str, "player_source");
g.g(false);
Show show = (Show) getPlayingShowFlow().getValue();
int i2 = -1;
Integer valueOf = Integer.valueOf((show == null || (id = show.getId()) == null) ? -1 : id.intValue());
if (num != null) {
i2 = num.intValue();
} else {
CUPart cUPart = (CUPart) getPlayingEpisodeFlow().getValue();
Integer id2 = cUPart != null ? cUPart.getId() : null;
if (id2 != null) {
i2 = id2.intValue();
}
}
Integer valueOf2 = Integer.valueOf(i2);
Show show2 = (Show) getPlayingShowFlow().getValue();
SubscriptionMeta subscriptionMeta = new SubscriptionMeta(str, valueOf, valueOf2, null, null, null, show2 != null ? show2.getImage() : null, null, null, null, Integer.valueOf(i), null, null, z, null, null, null, null, null, 515000, null);
b bVar = a.a;
a.b(new C2198b(i.NAVIGATE_TO_COIN_FLOW, subscriptionMeta));
dismiss$default(this, null, 1, null);
}
@Override
public void onCreate(Bundle bundle) {
Bundle extras;
Bundle extras2;
String string;
super.onCreate(bundle);
Bundle extras3 = getIntent().getExtras();
String str = "";
if (extras3 != null && (string = extras3.getString("source", "")) != null) {
str = string;
}
this.source = str;
Ai.p pVar = KukuFMApplication.x;
this.isServedMltOnScroll = pVar.B().h().a.a.getBoolean("onScrollUpMlt", false);
this.isServedMltOnBackPress = pVar.B().h().a.a.getBoolean("onBackPressMlt", false);
r2.a.e0(getWindow(), false);
Window window = getWindow();
if (window != null) {
window.addFlags(128);
}
observeFlows();
getOnBackPressedDispatcher().a(this, new C(this, 0));
h.a.a(this, new p0.c(new G(this, 0), true, -653032950));
k l = pVar.B().d().l("reels_screen_viewed");
Intent intent = getIntent();
Integer num = null;
l.c((intent == null || (extras2 = intent.getExtras()) == null) ? null : Integer.valueOf(extras2.getInt("show_id", 0)), "show_id");
Intent intent2 = getIntent();
if (intent2 != null && (extras = intent2.getExtras()) != null) {
num = Integer.valueOf(extras.getInt("episode_id", 0));
}
l.c(num, "episode_id");
l.c(this.source, "source");
l.d();
}
@Override
public void onDestroy() {
super.onDestroy();
Window window = getWindow();
if (window != null) {
window.clearFlags(128);
}
o.r(KukuFMApplication.x, "reels_screen_collapsed");
}
@Override
public void onPictureInPictureModeChanged(boolean z, Configuration configuration) {
Intrinsics.checkNotNullParameter(configuration, "newConfig");
super.onPictureInPictureModeChanged(z, configuration);
if (!z) {
k r = d.r(KukuFMApplication.x, "pip_mode_exited");
Show show = (Show) getPlayingShowFlow().getValue();
r.c(show != null ? show.getId() : null, "show_id");
CUPart cUPart = (CUPart) getPlayingEpisodeFlow().getValue();
r.c(cUPart != null ? cUPart.getId() : null, "episode_id");
r.d();
PlayerBaseActivity.pause$default(this, "pip_window", null, 2, null);
return;
}
androidx.fragment.app.y U = getSupportFragmentManager().U("more_like_this_dialog");
if (U != null) {
androidx.fragment.app.y yVar = U instanceof androidx.fragment.app.y ? U : null;
if (yVar != null) {
yVar.dismiss();
}
}
k r2 = d.r(KukuFMApplication.x, "pip_mode_entered");
Show show2 = (Show) getPlayingShowFlow().getValue();
r2.c(show2 != null ? show2.getId() : null, "show_id");
CUPart cUPart2 = (CUPart) getPlayingEpisodeFlow().getValue();
r2.c(cUPart2 != null ? cUPart2.getId() : null, "episode_id");
r2.d();
}
public final void startPlayerActivity(String str, CUPart cUPart, Show show) {
Intrinsics.checkNotNullParameter(str, "source");
p.w(i0.i(this), (CoroutineContext) null, (Kp.J) null, new Am.J(show, this, cUPart, str, null), 3);
}
}