MD5 校验值:facd8e3913e14e36e7daf9e69fbd45cb
TopAboutView.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。
package it.ettoregallina.androidutils.ui.view; import G1.C; import M1.h; import X1.a; import android.annotation.SuppressLint; import android.content.Context; import android.content.pm.PackageManager; import android.content.res.TypedArray; import android.text.method.LinkMovementMethod; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.TextView; import it.Ettore.spesaelettrica.R; import java.util.Arrays; import java.util.Calendar; import kotlin.jvm.internal.k; public final class TopAboutView extends FrameLayout { public static final a Companion = new Object(); public final ImageView f2695a; public final TextView f2696b; public final TextView f2697c; public final TextView f2698d; public final TextView e; public final ImageView f; public final SeparatoreSfumato g; public final SeparatoreSfumato h; public int i; public int j; public String k; public String f2699l; public int m; public int n; public int o; public Runnable f2700p; public TopAboutView(Context context, AttributeSet attributeSet) { super(context, attributeSet); k.e(context, "context"); View inflate = LayoutInflater.from(context).inflate(R.layout.top_about_view, (ViewGroup) this, false); View findViewById = inflate.findViewById(R.id.icona_imageview); k.d(findViewById, "findViewById(...)"); this.f2695a = (ImageView) findViewById; View findViewById2 = inflate.findViewById(R.id.app_textview); k.d(findViewById2, "findViewById(...)"); this.f2696b = (TextView) findViewById2; View findViewById3 = inflate.findViewById(R.id.creato_da_textview); k.d(findViewById3, "findViewById(...)"); this.f2697c = (TextView) findViewById3; View findViewById4 = inflate.findViewById(R.id.copyright_textview); k.d(findViewById4, "findViewById(...)"); this.f2698d = (TextView) findViewById4; View findViewById5 = inflate.findViewById(R.id.logo_imageview); k.d(findViewById5, "findViewById(...)"); ImageView imageView = (ImageView) findViewById5; this.f = imageView; View findViewById6 = inflate.findViewById(R.id.sito_textview); k.d(findViewById6, "findViewById(...)"); TextView textView = (TextView) findViewById6; this.e = textView; this.g = (SeparatoreSfumato) inflate.findViewById(R.id.separatore1); View findViewById7 = inflate.findViewById(R.id.separatore2); k.d(findViewById7, "findViewById(...)"); this.h = (SeparatoreSfumato) findViewById7; TypedArray obtainStyledAttributes = context.getTheme().obtainStyledAttributes(attributeSet, h.f740c, 0, 0); k.d(obtainStyledAttributes, "obtainStyledAttributes(...)"); setResIdIcona(obtainStyledAttributes.getResourceId(3, 0)); setAppName(obtainStyledAttributes.getString(0)); setCreatoDaText(obtainStyledAttributes.getString(2)); setCopyrightYear(obtainStyledAttributes.getInt(1, 0)); setPrimaryColor(obtainStyledAttributes.getColor(5, -65536)); setLinkColor(obtainStyledAttributes.getColor(4, -65536)); obtainStyledAttributes.recycle(); textView.setMovementMethod(LinkMovementMethod.getInstance()); textView.setText(m3.a.o("<a href=\"https://www.egalnetsoftwares.com\">www.egalnetsoftwares.com</a>")); imageView.setOnClickListener(new C(this, 4)); addView(inflate); } public final String getAppName() { return this.k; } public final TextView getAppTextView() { return this.f2696b; } public final TextView getCopyrightTextView() { return this.f2698d; } public final int getCopyrightYear() { return this.m; } public final String getCreatoDaText() { return this.f2699l; } public final TextView getCreatoDaTextView() { return this.f2697c; } public final ImageView getIconaImageView() { return this.f2695a; } public final int getLinkColor() { return this.o; } public final ImageView getLogoImageView() { return this.f; } public final Runnable getOn7thTouchLogoListener() { return this.f2700p; } public final int getPrimaryColor() { return this.n; } public final int getResIdIcona() { return this.j; } public final SeparatoreSfumato getSeparatore1() { return this.g; } public final SeparatoreSfumato getSeparatore2() { return this.h; } public final TextView getSitoTextView() { return this.e; } public final void setAppName(String str) { String versionName; Context context = getContext(); k.d(context, "getContext(...)"); PackageManager packageManager = context.getPackageManager(); k.d(packageManager, "getPackageManager(...)"); try { String packageName = context.getPackageName(); k.d(packageName, "getPackageName(...)"); versionName = packageManager.getPackageInfo(packageName, 0).versionName; k.d(versionName, "versionName"); } catch (PackageManager.NameNotFoundException unused) { versionName = ""; } boolean z3 = true & true; this.f2696b.setText(String.format("%s v%s", Arrays.copyOf(new Object[]{str, versionName}, 2))); this.k = str; } @SuppressLint({"SetTextI18n"}) public final void setCopyrightYear(int i) { int i4 = Calendar.getInstance().get(1); this.f2698d.setText(C.a.k(i < i4 ? C.a.g(i, i4, "©", "-") : C.a.h(i, "©"), " Copyright Egal Net di Ettore Gallina.\nAll rights reserved.")); this.m = i; } public final void setCreatoDaText(String str) { TextView textView = this.f2697c; if (str != null) { textView.setText(String.format("%s %s", Arrays.copyOf(new Object[]{str, "Ettore Gallina"}, 2))); } else { textView.setText((CharSequence) null); } this.f2699l = str; } public final void setLinkColor(int i) { TextView textView = this.e; textView.setTextColor(i); textView.setLinkTextColor(i); this.o = i; } public final void setOn7thTouchLogoListener(Runnable runnable) { this.f2700p = runnable; } public final void setPrimaryColor(int i) { SeparatoreSfumato separatoreSfumato = this.g; if (separatoreSfumato != null) { separatoreSfumato.setColor(i); } this.h.setColor(i); this.f2696b.setTextColor(i); this.n = i; } public final void setResIdIcona(int i) { if (i != 0) { this.f2695a.setImageResource(i); } this.j = i; } }