正在查看: Bhakti v5.4.0 应用的 C1526cg.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Bhakti v5.4.0 应用的 C1526cg.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package Vj;
import android.content.Context;
import android.util.SparseIntArray;
import android.view.View;
import android.webkit.WebView;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import androidx.appcompat.widget.AppCompatImageView;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.appcompat.widget.LinearLayoutCompat;
import androidx.cardview.widget.CardView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.widget.NestedScrollView;
import androidx.datastore.preferences.protobuf.AbstractC2398o;
import com.google.android.material.imageview.ShapeableImageView;
import com.vlv.aravali.base.ui.viewModelUiComponent.ColorViewModel;
import com.vlv.aravali.bhakti.R;
import com.vlv.aravali.common.models.Show;
import com.vlv.aravali.novel.data.Chapter;
import hj.EnumC4913b;
import kk.InterfaceC5657b;
import kk.ViewOnClickListenerC5658c;
import kotlin.jvm.internal.Intrinsics;
import ul.C7034n;
import vl.C7166g;
import y2.AbstractC7406c;
public final class C1526cg extends AbstractC1506bg implements InterfaceC5657b {
public static final SparseIntArray f25575B0;
public long f25576A0;
public final LinearLayoutCompat f25577x0;
public final ViewOnClickListenerC5658c f25578y0;
public final ViewOnClickListenerC5658c f25579z0;
static {
SparseIntArray sparseIntArray = new SparseIntArray();
f25575B0 = sparseIntArray;
sparseIntArray.put(R.id.llToolbar, 13);
sparseIntArray.put(R.id.ivClose, 14);
sparseIntArray.put(R.id.ivChaptersSelect, 15);
sparseIntArray.put(R.id.ivBrightness, 16);
sparseIntArray.put(R.id.ivFontSize, 17);
sparseIntArray.put(R.id.ivPreviousChapter, 18);
sparseIntArray.put(R.id.ivNextChapter, 19);
}
public C1526cg(View view) {
super(null, view, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, (NestedScrollView) r21[3], (AppCompatTextView) r21[10], (LinearLayout) r21[12], (ConstraintLayout) r21[0], (ProgressBar) r21[11], (AppCompatTextView) r21[6], (AppCompatTextView) r21[2]);
Object[] n = x2.m.n(view, 20, null, f25575B0);
CardView cardView = (CardView) n[9];
AppCompatTextView appCompatTextView = (AppCompatTextView) n[7];
WebView webView = (WebView) n[8];
ShapeableImageView shapeableImageView = (ShapeableImageView) n[5];
ProgressBar progressBar = (ProgressBar) n[1];
AppCompatImageView appCompatImageView = (AppCompatImageView) n[16];
AppCompatImageView appCompatImageView2 = (AppCompatImageView) n[15];
AppCompatImageView appCompatImageView3 = (AppCompatImageView) n[14];
AppCompatImageView appCompatImageView4 = (AppCompatImageView) n[17];
AppCompatImageView appCompatImageView5 = (AppCompatImageView) n[19];
AppCompatImageView appCompatImageView6 = (AppCompatImageView) n[18];
this.f25576A0 = -1L;
this.f25505L.setTag(null);
this.f25506M.setTag(null);
this.f25507Q.setTag(null);
this.f25508X.setTag(null);
this.f25509Y.setTag(null);
LinearLayoutCompat linearLayoutCompat = (LinearLayoutCompat) n[4];
this.f25577x0 = linearLayoutCompat;
linearLayoutCompat.setTag(null);
this.f25516n0.setTag(null);
this.f25517o0.setTag(null);
this.f25518p0.setTag(null);
this.q0.setTag(null);
this.f25519r0.setTag(null);
this.f25520s0.setTag(null);
this.f25521t0.setTag(null);
u(view);
this.f25578y0 = new ViewOnClickListenerC5658c(this, 2, 0);
this.f25579z0 = new ViewOnClickListenerC5658c(this, 1, 0);
l();
}
@Override
public final void a(int i10) {
C7034n c7034n;
if (i10 != 1) {
if (i10 == 2 && (c7034n = this.f25523v0) != null) {
c7034n.k();
return;
}
return;
}
C7034n c7034n2 = this.f25523v0;
if (c7034n2 != null) {
c7034n2.m();
}
}
@Override
public final void e() {
long j10;
String str;
ij.j jVar;
String str2;
ij.j jVar2;
ij.j jVar3;
ColorViewModel textColor;
String text;
ColorViewModel bgcolor;
String str3;
ij.j jVar4;
ij.j jVar5;
float f10;
int i10;
String str4;
ij.j jVar6;
ij.j jVar7;
synchronized (this) {
j10 = this.f25576A0;
this.f25576A0 = 0L;
}
C7166g c7166g = this.f25522u0;
float f11 = 0.0f;
if ((32765 & j10) != 0) {
i10 = ((j10 & 16389) == 0 || c7166g == null) ? 0 : ((Number) c7166g.f71562a.a(c7166g, C7166g.f71561r[0])).intValue();
if ((j10 & 18209) == 0 || c7166g == null) {
textColor = null;
text = null;
bgcolor = null;
} else {
Gp.j[] jVarArr = C7166g.f71561r;
textColor = (ColorViewModel) c7166g.f71570i.a(c7166g, jVarArr[8]);
text = (String) c7166g.f71569h.a(c7166g, jVarArr[7]);
bgcolor = (ColorViewModel) c7166g.f71571j.a(c7166g, jVarArr[9]);
f11 = ((Number) c7166g.f71568g.a(c7166g, jVarArr[6])).floatValue();
}
jVar3 = ((j10 & 16449) == 0 || c7166g == null) ? null : (ij.j) c7166g.f71565d.a(c7166g, C7166g.f71561r[3]);
ij.j jVar8 = ((j10 & 16393) == 0 || c7166g == null) ? null : (ij.j) c7166g.f71563b.a(c7166g, C7166g.f71561r[1]);
if ((j10 & 16513) != 0) {
Show show = c7166g != null ? (Show) c7166g.f71566e.a(c7166g, C7166g.f71561r[4]) : null;
if (show != null) {
str3 = show.getTitle();
jVar4 = ((j10 & 20481) != 0 || c7166g == null) ? null : (ij.j) c7166g.f71564c.a(c7166g, C7166g.f71561r[2]);
jVar5 = ((j10 & 24577) != 0 || c7166g == null) ? null : (ij.j) c7166g.f71572k.a(c7166g, C7166g.f71561r[10]);
jVar = ((j10 & 18433) != 0 || c7166g == null) ? null : (ij.j) c7166g.f71573p.a(c7166g, C7166g.f71561r[11]);
if ((j10 & 16401) != 0) {
Chapter chapter = c7166g != null ? (Chapter) c7166g.f71567f.a(c7166g, C7166g.f71561r[5]) : null;
if (chapter != null) {
String title = chapter.getTitle();
str2 = chapter.getImage();
jVar2 = jVar8;
str = title;
f10 = f11;
}
}
jVar2 = jVar8;
str = null;
str2 = null;
f10 = f11;
}
}
str3 = null;
if ((j10 & 20481) != 0) {
}
if ((j10 & 24577) != 0) {
}
if ((j10 & 18433) != 0) {
}
if ((j10 & 16401) != 0) {
}
jVar2 = jVar8;
str = null;
str2 = null;
f10 = f11;
} else {
str = null;
jVar = null;
str2 = null;
jVar2 = null;
jVar3 = null;
textColor = null;
text = null;
bgcolor = null;
str3 = null;
jVar4 = null;
jVar5 = null;
f10 = 0.0f;
i10 = 0;
}
if ((j10 & 16384) != 0) {
str4 = str3;
jVar6 = jVar4;
this.f25505L.setOnClickListener(this.f25578y0);
Ri.r.B(this.f25506M, EnumC4913b.REGULAR);
this.f25577x0.setOnClickListener(this.f25579z0);
AppCompatTextView appCompatTextView = this.f25517o0;
EnumC4913b enumC4913b = EnumC4913b.BOLD;
Ri.r.B(appCompatTextView, enumC4913b);
Ri.r.B(this.f25520s0, enumC4913b);
Ri.r.B(this.f25521t0, enumC4913b);
} else {
str4 = str3;
jVar6 = jVar4;
}
if ((18433 & j10) != 0) {
Ri.r.T(this.f25505L, jVar);
}
if ((16401 & j10) != 0) {
AbstractC7406c.a(this.f25506M, str);
ShapeableImageView shapeableImageView = this.f25508X;
Intrinsics.checkNotNullParameter(shapeableImageView, "<this>");
shapeableImageView.setImageResource(R.drawable.ic_novel_placeholder);
Qk.f.i(shapeableImageView, str2);
AbstractC7406c.a(this.f25521t0, str);
}
if ((16641 & j10) != 0) {
Ri.r.M(this.f25506M, textColor);
Ri.r.M(this.f25520s0, textColor);
}
if ((j10 & 18209) != 0) {
WebView webView = this.f25507Q;
Intrinsics.checkNotNullParameter(webView, "<this>");
Intrinsics.checkNotNullParameter(text, "text");
Intrinsics.checkNotNullParameter(bgcolor, "bgcolor");
Intrinsics.checkNotNullParameter(textColor, "textColor");
Context context = webView.getContext();
Intrinsics.checkNotNullExpressionValue(context, "getContext(...)");
jVar7 = jVar5;
String u10 = Ai.o.u(new Object[]{Integer.valueOf(context.getColor(bgcolor.getColor()) & 16777215)}, 1, "#%06X", "format(...)");
String u11 = Ai.o.u(new Object[]{Integer.valueOf(context.getColor(textColor.getColor()) & 16777215)}, 1, "#%06X", "format(...)");
EnumC4913b enumC4913b2 = EnumC4913b.REGULAR;
StringBuilder sb2 = new StringBuilder("\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <script src=\"https://cdn.tailwindcss.com\"></script>\n <script src=\"https://cdn.tailwindcss.com?plugins=forms,typography,aspect-ratio,line-clamp,container-queries\"></script>\n <title>Document</title>\n <style>\n body {\n font-family: Arial, sans-serif;\n padding: 16px;\n line-height: 1.6;\n font-family: ");
sb2.append(enumC4913b2);
sb2.append("\n color: ");
sb2.append(u11);
sb2.append(";\n background-color: ");
sb2.append(u10);
sb2.append("; \n font-size: ");
sb2.append(f10);
sb2.append("px;\n }\n h1 {\n color: blue;\n margin-bottom: 20px;\n }\n h2 {\n color: darkgreen;\n margin-bottom: 15px;\n }\n p {\n color: ");
Ii.b.x(sb2, u11, ";\n background-color: ", u10, "; \n font-size: ");
sb2.append(f10);
sb2.append("px;\n margin-bottom: 15px;\n }\n a {\n color: darkred;\n text-decoration: none;\n }\n a:hover {\n text-decoration: underline;\n }\n \n </style>\n </head>\n <body>\n\n <!-- Use a div to display HTML content -->\n <div id=\"content\" class=\"prose\"></div>\n\n <script>\n const contentDiv = document.querySelector('#content');\n\n // The string you are receiving from the backend\n const escapedString = `");
sb2.append(text);
sb2.append("`;\n\n // Function to decode HTML entities\n function decodeHTML(html) {\n const txt = document.createElement('textarea');\n txt.innerHTML = html;\n return txt.value;\n }\n\n // Decode the escaped HTML string\n const decodedHTML = decodeHTML(escapedString).replace(/\\n/g,'<br>');\n\n // Inject the decoded HTML into the div\n contentDiv.innerHTML = decodedHTML;\n contentDiv.style.color = '");
String l10 = AbstractC2398o.l(sb2, u11, "'; \n contentDiv.style.backgroundColor = '", u10, "';\n const touchArea = document.getElementById('content');\n\n function triggerAndroid() {\n console.log(\"Trigger Android\");\n window.android.triggerAndroid()\n \n }\n\n touchArea.addEventListener('touchstart', function(e) {\n e.preventDefault(); // Prevent default touch behavior\n triggerAndroid();\n });\n </script>\n </body>\n </html>\n ");
webView.getSettings().setDefaultFontSize((int) f10);
webView.loadDataWithBaseURL(null, l10, "text/html", "UTF-8", null);
} else {
jVar7 = jVar5;
}
if ((j10 & 16389) != 0) {
this.f25509Y.setProgress(i10);
}
if ((j10 & 16393) != 0) {
Ri.r.T(this.f25509Y, jVar2);
}
if ((16417 & j10) != 0) {
NestedScrollView nestedScrollView = this.f25516n0;
Intrinsics.checkNotNullParameter(nestedScrollView, "<this>");
if (bgcolor != null) {
nestedScrollView.setBackgroundColor(nestedScrollView.getContext().getColor(bgcolor.getColor()));
}
}
if ((j10 & 16449) != 0) {
Ri.r.T(this.f25516n0, jVar3);
}
if ((24577 & j10) != 0) {
Ri.r.T(this.f25518p0, jVar7);
}
if ((20481 & j10) != 0) {
Ri.r.T(this.f25519r0, jVar6);
}
if ((j10 & 16513) != 0) {
AbstractC7406c.a(this.f25520s0, str4);
}
}
@Override
public final boolean j() {
synchronized (this) {
try {
return this.f25576A0 != 0;
} catch (Throwable th2) {
throw th2;
}
}
}
@Override
public final void l() {
synchronized (this) {
this.f25576A0 = 16384L;
}
q();
}
@Override
public final boolean o(int i10, int i11, Object obj) {
if (i10 != 0) {
return false;
}
if (i11 == 0) {
synchronized (this) {
this.f25576A0 |= 1;
}
} else if (i11 == 359) {
synchronized (this) {
this.f25576A0 |= 4;
}
} else if (i11 == 361) {
synchronized (this) {
this.f25576A0 |= 8;
}
} else if (i11 == 48) {
synchronized (this) {
this.f25576A0 |= 16;
}
} else if (i11 == 22) {
synchronized (this) {
this.f25576A0 |= 32;
}
} else if (i11 == 76) {
synchronized (this) {
this.f25576A0 |= 64;
}
} else if (i11 == 292) {
synchronized (this) {
this.f25576A0 |= 128;
}
} else if (i11 == 528) {
synchronized (this) {
this.f25576A0 |= 256;
}
} else if (i11 == 180) {
synchronized (this) {
this.f25576A0 |= 512;
}
} else if (i11 == 527) {
synchronized (this) {
this.f25576A0 |= 1024;
}
} else if (i11 == 286) {
synchronized (this) {
this.f25576A0 |= 2048;
}
} else if (i11 == 265) {
synchronized (this) {
this.f25576A0 |= 4096;
}
} else {
if (i11 != 449) {
return false;
}
synchronized (this) {
this.f25576A0 |= 8192;
}
}
return true;
}
@Override
public final void w(C7166g c7166g) {
v(0, c7166g);
this.f25522u0 = c7166g;
synchronized (this) {
this.f25576A0 |= 1;
}
notifyPropertyChanged(608);
q();
}
}