MD5 校验值:230b791cc707d42fd585468f66a30851
c.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package com.esd.laundrylink.fragments; import android.os.Build; import android.os.Bundle; import android.text.Html; import android.text.Spanned; import android.text.TextUtils; import android.text.method.LinkMovementMethod; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.TextView; import androidx.fragment.app.Fragment; import com.esd.laundrylink.SharedApplication; import com.esd.laundrylink.cycleview.R; import com.esd.laundrylink.p0.r; public class c extends Fragment implements View.OnClickListener, r { private Button r0; private Button s0; private com.esd.laundrylink.p0.d t0; private com.esd.laundrylink.p0.j u0; private boolean v0 = false; private boolean w0 = false; private static Spanned I2(String str) { if (Build.VERSION.SDK_INT >= 24) { return Html.fromHtml(str, 0); } return Html.fromHtml(str); } public void J2() { this.v0 = true; } @Override public void K() { } public void K2() { this.w0 = true; } public void L2(com.esd.laundrylink.p0.d dVar) { this.t0 = dVar; } public void M2(com.esd.laundrylink.p0.j jVar) { this.u0 = jVar; } @Override public void P1(View view, Bundle bundle) { super.P1(view, bundle); this.r0 = (Button) view.findViewById(R.id.btnChangeLocation); this.s0 = (Button) view.findViewById(R.id.btnMachineAvailability); if (this.v0) { this.r0.setVisibility(8); } if (this.w0) { this.s0.setVisibility(8); } this.r0.setOnClickListener(this); this.s0.setOnClickListener(this); } @Override public void Q1(Bundle bundle) { super.Q1(bundle); b(); } @Override public void b() { if (W0() == null) { return; } SharedApplication G = SharedApplication.G(); TextView textView = (TextView) W0().findViewById(R.id.textViewHelpInstructions); StringBuilder sb = new StringBuilder(); String b1 = G.H().b1(); String W0 = G.H().W0(); String E = d.b.b.h.E(G.H().d1()); String X0 = G.H().X0(); String c1 = G.H().c1(); if (!TextUtils.isEmpty(b1)) { sb.append("<h3>"); sb.append(b1); sb.append("</h3>"); } if (!TextUtils.isEmpty(W0)) { W0 = W0.replaceAll("\\r\\n", "<br>"); sb.append(W0); sb.append("<br>"); sb.append("<br>"); } if (!TextUtils.isEmpty(c1)) { sb.append(String.format("<i>\"%s\"</i>", c1)); sb.append("<br>"); sb.append("<br>"); } if (!TextUtils.isEmpty(E) && d.b.b.h.u(X0)) { sb.append(String.format("<strong>%s</strong>", S0(R.string.help_customer_service))); sb.append("<br>"); } if (!TextUtils.isEmpty(E)) { sb.append(String.format("%s: <a href=tel:%s>%s</a>", S0(R.string.help_phone_number), E, d.b.b.h.k(E))); sb.append("<br>"); } if (d.b.b.h.u(X0)) { sb.append(String.format("%s: <a href=mailto:%s>%s</a>", S0(R.string.help_email_address), X0, X0)); } if (TextUtils.isEmpty(b1) && TextUtils.isEmpty(W0) && TextUtils.isEmpty(c1) && TextUtils.isEmpty(E) && !d.b.b.h.u(X0)) { sb.append(String.format("<strong>%s</strong>", S0(R.string.help_customer_service))); sb.append("<br>"); sb.append(String.format("%s: <a href=tel:%s>%s</a>", S0(R.string.help_phone_number), "8005309106", d.b.b.h.k("8005309106"))); sb.append("<br>"); sb.append(String.format("%s: <a href=mailto:%s>%s</a>", S0(R.string.help_email_address), "tech@esdcard.com", "tech@esdcard.com")); } sb.append("<p>"); sb.append(String.format("<small>%s</small>", S0(R.string.help_instructions))); sb.append("</p>"); textView.setText(I2(sb.toString())); textView.setMovementMethod(LinkMovementMethod.getInstance()); } @Override public void n() { } @Override public void onClick(View view) { com.esd.laundrylink.p0.j jVar; if (view.getId() == R.id.btnChangeLocation) { com.esd.laundrylink.p0.d dVar = this.t0; if (dVar != null) { dVar.M(); return; } return; } if (view.getId() != R.id.btnMachineAvailability || (jVar = this.u0) == null) { return; } jVar.p(); } @Override public View u1(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { return layoutInflater.inflate(R.layout.card_fragment_help, viewGroup, false); } @Override public void x1() { super.x1(); this.r0.setOnClickListener(null); this.s0.setOnClickListener(null); this.r0 = null; this.s0 = null; } }