正在查看: Crafto v9.3.3 应用的 T7.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Crafto v9.3.3 应用的 T7.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.crafto.android.ui.home;
import android.content.Context;
import android.graphics.Bitmap;
import android.net.Uri;
import android.view.View;
import android.widget.ProgressBar;
import android.widget.TextView;
import androidx.appcompat.widget.AppCompatImageView;
import com.arthenica.ffmpegkit.FFmpegKitConfig;
import com.crafto.android.data.model.QuoteData;
import com.crafto.android.ui.home.T7;
import com.crafto.android.ui.home.quotes.QuoteView;
import do.a;
import java.io.File;
import kotlin.Unit;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Ref;
import t7.C3053c2;
@Mk.e(c = "com.crafto.android.ui.home.TrendingHomeFullScreenExpFragment$createVideoFromQuoteForOldSmallContent$1", f = "TrendingHomeFullScreenExpFragment.kt", l = {16672, 16680}, m = "invokeSuspend")
public final class T7 extends Mk.i implements Function2<dl.H, Kk.c<? super Unit>, Object> {
public QuoteView a;
public QuoteView b;
public QuoteData c;
public Object d;
public Object e;
public View f;
public int g;
public final View h;
public final QuoteData i;
public final D7 j;
public final Ref.ObjectRef<Bitmap> k;
public final int l;
public final QuoteData m;
@Mk.e(c = "com.crafto.android.ui.home.TrendingHomeFullScreenExpFragment$createVideoFromQuoteForOldSmallContent$1$3$1$1$1", f = "TrendingHomeFullScreenExpFragment.kt", l = {}, m = "invokeSuspend")
public static final class a extends Mk.i implements Function2<dl.H, Kk.c<? super Unit>, Object> {
public final D7 a;
public final QuoteView b;
public final Context c;
public final QuoteData d;
public final int e;
@Mk.e(c = "com.crafto.android.ui.home.TrendingHomeFullScreenExpFragment$createVideoFromQuoteForOldSmallContent$1$3$1$1$1$1", f = "TrendingHomeFullScreenExpFragment.kt", l = {16709}, m = "invokeSuspend")
public static final class C0046a extends Mk.i implements Function2<dl.H, Kk.c<? super Unit>, Object> {
public int a;
public final D7 b;
public final QuoteView c;
public final Bitmap d;
public final Context e;
public final QuoteData f;
public final int g;
@Mk.e(c = "com.crafto.android.ui.home.TrendingHomeFullScreenExpFragment$createVideoFromQuoteForOldSmallContent$1$3$1$1$1$1$1$1$1$2", f = "TrendingHomeFullScreenExpFragment.kt", l = {}, m = "invokeSuspend")
public static final class C0047a extends Mk.i implements Function2<dl.H, Kk.c<? super Unit>, Object> {
public final D7 a;
public final Ref.IntRef b;
public C0047a(D7 d7, Ref.IntRef intRef, Kk.c<? super C0047a> cVar) {
super(2, cVar);
this.a = d7;
this.b = intRef;
}
public final Kk.c<Unit> create(Object obj, Kk.c<?> cVar) {
return new C0047a(this.a, this.b, cVar);
}
public final Object invoke(Object obj, Object obj2) {
return create((dl.H) obj, (Kk.c) obj2).invokeSuspend(Unit.a);
}
public final Object invokeSuspend(Object obj) {
TextView videoProcessProgressBarTV;
ProgressBar videoProcessProgressBar;
Lk.a aVar = Lk.a.COROUTINE_SUSPENDED;
Hk.q.b(obj);
D7 d7 = this.a;
QuoteView quoteView = d7.z2;
Ref.IntRef intRef = this.b;
if (quoteView != null && (videoProcessProgressBar = quoteView.getVideoProcessProgressBar()) != null) {
videoProcessProgressBar.setProgress(intRef.element);
}
QuoteView quoteView2 = d7.z2;
if (quoteView2 != null && (videoProcessProgressBarTV = quoteView2.getVideoProcessProgressBarTV()) != null) {
StringBuilder sb = new StringBuilder();
sb.append(intRef.element);
sb.append('%');
videoProcessProgressBarTV.setText(sb.toString());
}
return Unit.a;
}
}
@Mk.e(c = "com.crafto.android.ui.home.TrendingHomeFullScreenExpFragment$createVideoFromQuoteForOldSmallContent$1$3$1$1$1$1$2", f = "TrendingHomeFullScreenExpFragment.kt", l = {16972}, m = "invokeSuspend")
public static final class b extends Mk.i implements Function2<dl.H, Kk.c<? super Unit>, Object> {
public int a;
public final D7 b;
public final QuoteData c;
public final Ref.ObjectRef<String> d;
public final String e;
public final int f;
@Mk.e(c = "com.crafto.android.ui.home.TrendingHomeFullScreenExpFragment$createVideoFromQuoteForOldSmallContent$1$3$1$1$1$1$2$1$session$1$1", f = "TrendingHomeFullScreenExpFragment.kt", l = {}, m = "invokeSuspend")
public static final class C0048a extends Mk.i implements Function2<dl.H, Kk.c<? super Unit>, Object> {
public final D7 a;
public final N5.d b;
public final String c;
public final QuoteData d;
public final int e;
public C0048a(D7 d7, N5.d dVar, String str, QuoteData quoteData, int i, Kk.c<? super C0048a> cVar) {
super(2, cVar);
this.a = d7;
this.b = dVar;
this.c = str;
this.d = quoteData;
this.e = i;
}
public final Kk.c<Unit> create(Object obj, Kk.c<?> cVar) {
return new C0048a(this.a, this.b, this.c, this.d, this.e, cVar);
}
public final Object invoke(Object obj, Object obj2) {
return create((dl.H) obj, (Kk.c) obj2).invokeSuspend(Unit.a);
}
public final Object invokeSuspend(Object obj) {
Lk.a aVar = Lk.a.COROUTINE_SUSPENDED;
Hk.q.b(obj);
N5.d dVar = this.b;
D7 d7 = this.a;
d7.x0(new Q3(dVar, d7, this.c, this.d, this.e));
return Unit.a;
}
}
@Mk.e(c = "com.crafto.android.ui.home.TrendingHomeFullScreenExpFragment$createVideoFromQuoteForOldSmallContent$1$3$1$1$1$1$2$2", f = "TrendingHomeFullScreenExpFragment.kt", l = {}, m = "invokeSuspend")
public static final class C0049b extends Mk.i implements Function2<dl.H, Kk.c<? super Unit>, Object> {
public final D7 a;
public final int b;
public C0049b(D7 d7, int i, Kk.c<? super C0049b> cVar) {
super(2, cVar);
this.a = d7;
this.b = i;
}
public final Kk.c<Unit> create(Object obj, Kk.c<?> cVar) {
return new C0049b(this.a, this.b, cVar);
}
public final Object invoke(Object obj, Object obj2) {
return create((dl.H) obj, (Kk.c) obj2).invokeSuspend(Unit.a);
}
public final Object invokeSuspend(Object obj) {
Lk.a aVar = Lk.a.COROUTINE_SUSPENDED;
Hk.q.b(obj);
final D7 d7 = this.a;
final int i = this.b;
d7.x0(new Function0() {
public final Object invoke() {
a.a aVar2 = do.a.a;
aVar2.c("createVideoFromQuote 8", new Object[0]);
aVar2.c("quotesListAdapter?.notifyItemChanged 8", new Object[0]);
D7 d72 = d7;
E7.G g = d72.m3;
if (g != null) {
g.notifyItemChanged(i);
}
d72.W();
return Unit.a;
}
});
return Unit.a;
}
}
public b(int i, Kk.c cVar, QuoteData quoteData, D7 d7, String str, Ref.ObjectRef objectRef) {
super(2, cVar);
this.b = d7;
this.c = quoteData;
this.d = objectRef;
this.e = str;
this.f = i;
}
public final Kk.c<Unit> create(Object obj, Kk.c<?> cVar) {
String str = this.e;
return new b(this.f, cVar, this.c, this.b, str, this.d);
}
public final Object invoke(Object obj, Object obj2) {
return create((dl.H) obj, (Kk.c) obj2).invokeSuspend(Unit.a);
}
public final Object invokeSuspend(Object obj) {
Lk.a aVar = Lk.a.COROUTINE_SUSPENDED;
int i = this.a;
if (i == 0) {
Hk.q.b(obj);
final String str = this.e;
final int i2 = this.f;
final Ref.ObjectRef<String> objectRef = this.d;
final QuoteData quoteData = this.c;
final D7 d7 = this.b;
d7.x0(new Function0() {
public final Object invoke() {
a.a aVar2 = do.a.a;
StringBuilder sb = new StringBuilder("executeAsync ");
Ref.ObjectRef objectRef2 = objectRef;
sb.append((String) objectRef2.element);
aVar2.c(sb.toString(), new Object[0]);
String str2 = (String) objectRef2.element;
final D7 d72 = d7;
final String str3 = str;
final QuoteData quoteData2 = quoteData;
final int i3 = i2;
long j = N5.c.a(str2, new N5.e() {
public final void b(N5.d dVar) {
D7 d73 = D7.this;
androidx.lifecycle.E a = androidx.lifecycle.J.a(d73);
kl.c cVar = dl.Z.a;
dl.g.b(a, il.p.a, (dl.J) null, new T7.a.C0046a.b.C0048a(d73, dVar, str3, quoteData2, i3, null), 2);
}
}).a;
if (quoteData2 != null) {
quoteData2.setSessionId(Long.valueOf(j));
}
aVar2.c(J1.c.c(j, "session.sessionId "), new Object[0]);
return Boolean.FALSE;
}
});
this.a = 1;
if (dl.T.b(1200L, this) == aVar) {
return aVar;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
Hk.q.b(obj);
}
QuoteData quoteData2 = this.c;
if (quoteData2 != null) {
quoteData2.setContentType("VIDEO");
}
if (quoteData2 != null) {
quoteData2.setVideoUrl(quoteData2.getUrl());
}
if (quoteData2 != null) {
quoteData2.setVideoUri(null);
}
if (quoteData2 != null) {
quoteData2.setProcessingVideo(true);
}
if (quoteData2 != null) {
quoteData2.setPageSelected(true);
}
if (quoteData2 != null) {
quoteData2.setShowOldQuotesWithFullScreen(Boolean.FALSE);
}
D7 d72 = this.b;
androidx.lifecycle.E a = androidx.lifecycle.J.a(d72);
kl.c cVar = dl.Z.a;
dl.g.b(a, il.p.a, (dl.J) null, new C0049b(d72, this.f, null), 2);
return Unit.a;
}
}
public C0046a(D7 d7, QuoteView quoteView, Bitmap bitmap, Context context, QuoteData quoteData, int i, Kk.c<? super C0046a> cVar) {
super(2, cVar);
this.b = d7;
this.c = quoteView;
this.d = bitmap;
this.e = context;
this.f = quoteData;
this.g = i;
}
public final Kk.c<Unit> create(Object obj, Kk.c<?> cVar) {
return new C0046a(this.b, this.c, this.d, this.e, this.f, this.g, cVar);
}
public final Object invoke(Object obj, Object obj2) {
return create((dl.H) obj, (Kk.c) obj2).invokeSuspend(Unit.a);
}
public final Object invokeSuspend(Object obj) {
String str;
Lk.a aVar = Lk.a.COROUTINE_SUSPENDED;
int i = this.a;
if (i == 0) {
Hk.q.b(obj);
this.a = 1;
if (dl.T.b(400L, this) == aVar) {
return aVar;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
Hk.q.b(obj);
}
final D7 d7 = this.b;
Hb.a0 j2 = d7.j2();
QuoteView quoteView = this.c;
View quoteShareLayout = quoteView != null ? quoteView.getQuoteShareLayout() : null;
j2.getClass();
Bitmap f = Hb.a0.f(quoteShareLayout);
a.a aVar2 = do.a.a;
StringBuilder sb = new StringBuilder("finalImage width_ ");
sb.append(f != null ? new Integer(f.getWidth()) : null);
sb.append(" height_ ");
sb.append(f != null ? new Integer(f.getHeight()) : null);
aVar2.c(sb.toString(), new Object[0]);
Uri U0 = D7.U0(this.d, d7);
Uri U02 = D7.U0(f, d7);
Context context = this.e;
File cacheDir = context.getCacheDir();
Intrinsics.checkNotNullExpressionValue(cacheDir, "getCacheDir(...)");
String absolutePath = new File(cacheDir, c0.c.b(new StringBuilder(), ".mp4")).getAbsolutePath();
QuoteData quoteData = this.f;
String ffmpegCommand = quoteData != null ? quoteData.getFfmpegCommand() : null;
aVar2.c(C1.e.a("command__ ", ffmpegCommand), new Object[0]);
Ref.ObjectRef b2 = W7.r.b(aVar2, C1.e.a("ovrLay ", (String) kotlin.collections.o.B(new String[]{"https://media.crafto.app/logo/13dfb03f-622a-49a9-8665-71810aaea4f6", "https://media.crafto.app/logo/7a1b5dc7-c1f0-4575-beac-73fd3d1425ea", "https://media.crafto.app/logo/9e9e1438-1c85-4cfc-a239-573e4bbc8487", "https://media.crafto.app/logo/c69660fa-667b-4089-8270-1fbe7b53628e", "https://media.crafto.app/logo/06854750-f41d-4d68-850e-5b9caafabf82", "https://media.crafto.app/logo/96ae1f2b-e73e-4153-886b-6bc39e28d62d", "https://media.crafto.app/logo/390f2522-674a-41f7-a1b8-ff68de44ccf7", "https://media.crafto.app/logo/e3de2567-7b58-46de-b2e3-f58f93e069d2", "https://media.crafto.app/logo/96d9d14d-93fe-484c-9507-6b3f67a9862b", "https://media.crafto.app/logo/048e8a1a-818c-496a-be0c-3c6fc9cb6f0b", "https://media.crafto.app/logo/c9339ef9-6ad8-4753-aec5-56f5b95baf0d", "https://media.crafto.app/logo/e263f391-00de-4a7e-8bda-9ebb693810f6", "https://media.crafto.app/logo/19005919-b2fd-4abc-8ab6-c011506022a7"}, Xk.c.a)), new Object[0]);
if (ffmpegCommand != null) {
String c = FFmpegKitConfig.c(context, U02);
Intrinsics.checkNotNullExpressionValue(c, "getSafParameterForRead(...)");
String l = kotlin.text.p.l(ffmpegCommand, "finalImageUri", c);
if (l != null) {
String c2 = FFmpegKitConfig.c(context, U0);
Intrinsics.checkNotNullExpressionValue(c2, "getSafParameterForRead(...)");
str = kotlin.text.p.l(l, "bgUri", c2);
b2.element = str;
b2.element = ((String) b2.element) + ' ' + absolutePath;
StringBuilder sb2 = new StringBuilder("executableCommand ");
sb2.append((String) b2.element);
aVar2.c(sb2.toString(), new Object[0]);
FFmpegKitConfig.h = new N5.p() {
public final void a(N5.o oVar) {
D7 d72 = D7.this;
d72.x0(new G9.l(2, d72, oVar));
}
};
dl.g.b(androidx.lifecycle.J.a(d7), dl.Z.a, (dl.J) null, new b(this.g, null, this.f, this.b, absolutePath, b2), 2);
return Unit.a;
}
}
str = null;
b2.element = str;
b2.element = ((String) b2.element) + ' ' + absolutePath;
StringBuilder sb22 = new StringBuilder("executableCommand ");
sb22.append((String) b2.element);
aVar2.c(sb22.toString(), new Object[0]);
FFmpegKitConfig.h = new N5.p() {
public final void a(N5.o oVar) {
D7 d72 = D7.this;
d72.x0(new G9.l(2, d72, oVar));
}
};
dl.g.b(androidx.lifecycle.J.a(d7), dl.Z.a, (dl.J) null, new b(this.g, null, this.f, this.b, absolutePath, b2), 2);
return Unit.a;
}
}
public a(D7 d7, QuoteView quoteView, Context context, QuoteData quoteData, int i, Kk.c<? super a> cVar) {
super(2, cVar);
this.a = d7;
this.b = quoteView;
this.c = context;
this.d = quoteData;
this.e = i;
}
public final Kk.c<Unit> create(Object obj, Kk.c<?> cVar) {
return new a(this.a, this.b, this.c, this.d, this.e, cVar);
}
public final Object invoke(Object obj, Object obj2) {
return create((dl.H) obj, (Kk.c) obj2).invokeSuspend(Unit.a);
}
public final Object invokeSuspend(Object obj) {
Bitmap bitmap;
AppCompatImageView appCompatImageView;
D7 d7 = this.a;
Lk.a aVar = Lk.a.COROUTINE_SUSPENDED;
Hk.q.b(obj);
try {
C3053c2 c3053c2 = (C3053c2) d7.y;
if (c3053c2 == null || (appCompatImageView = c3053c2.y2) == null) {
bitmap = null;
} else {
d7.j2().getClass();
bitmap = Hb.a0.f(appCompatImageView);
}
dl.g.b(androidx.lifecycle.J.a(d7), (CoroutineContext) null, (dl.J) null, new C0046a(this.a, this.b, bitmap, this.c, this.d, this.e, null), 3);
} catch (Exception e) {
do.a.a.e(e);
}
return Unit.a;
}
}
public T7(View view, QuoteData quoteData, D7 d7, Ref.ObjectRef<Bitmap> objectRef, int i, QuoteData quoteData2, Kk.c<? super T7> cVar) {
super(2, cVar);
this.h = view;
this.i = quoteData;
this.j = d7;
this.k = objectRef;
this.l = i;
this.m = quoteData2;
}
public final Kk.c<Unit> create(Object obj, Kk.c<?> cVar) {
return new T7(this.h, this.i, this.j, this.k, this.l, this.m, cVar);
}
public final Object invoke(Object obj, Object obj2) {
return create((dl.H) obj, (Kk.c) obj2).invokeSuspend(Unit.a);
}
public final java.lang.Object invokeSuspend(java.lang.Object r20) {
throw new UnsupportedOperationException("Method not decompiled: com.crafto.android.ui.home.T7.invokeSuspend(java.lang.Object):java.lang.Object");
}
}