导航菜单

页面标题

页面副标题

MedEd v5.3.6 - AboutUs.java 源代码

正在查看: MedEd v5.3.6 应用的 AboutUs.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.penpencil.physicswallah.feature.extras.presentation;

import android.graphics.drawable.Drawable;
import android.graphics.drawable.LevelListDrawable;
import android.os.Bundle;
import android.text.Html;
import android.text.TextUtils;
import android.widget.ImageView;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.penpencil.network.response.PreferenceData;
import com.penpencil.network.response.PreferenceResponse;
import defpackage.C0812sz;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class AboutUs extends rp implements Html.ImageGetter {
    public static final int L0 = 0;
    public ju3 H0;
    public C0812sz I0;
    public List<PreferenceData> J0;
    public Drawable K0;

    @BindView
    TextView aboutUs;

    @BindView
    ImageView backBtn;

    public static void U0(AboutUs aboutUs, PreferenceResponse preferenceResponse) {
        if (aboutUs.I0 == null) {
            aboutUs.H0.a();
        }
        if (preferenceResponse != null && preferenceResponse.getSuccess()) {
            if (aboutUs.I0 == null) {
                aboutUs.I0 = new C0812sz(pK0.g(PreferenceData.class, new ArrayList()));
            }
            aboutUs.I0.d(Long.valueOf(System.currentTimeMillis()));
            if (!preferenceResponse.getData().isEmpty()) {
                aboutUs.I0.c(pK0.g(PreferenceData.class, preferenceResponse.getData()));
                Iterator it = preferenceResponse.getData().iterator();
                while (true) {
                    if (!it.hasNext()) {
                        break;
                    }
                    PreferenceData preferenceData = (PreferenceData) it.next();
                    if (preferenceData.getKey().equals("AboutUs") && preferenceData.getType().toLowerCase().equals("string")) {
                        aboutUs.aboutUs.setText(Html.fromHtml((String) preferenceData.getValue(), aboutUs, null));
                        break;
                    }
                }
            }
            ((rp) aboutUs).C0.c().H("https://meded-api.penpencil.coep_programId_preference", pK0.h(C0812sz.class, aboutUs.I0));
        }
    }

    @Override
    public final Drawable getDrawable(String str) {
        LevelListDrawable levelListDrawable = new LevelListDrawable();
        Drawable drawable = getResources().getDrawable(2131231135);
        this.K0 = drawable;
        levelListDrawable.addLevel(0, 0, drawable);
        levelListDrawable.setBounds(0, 0, this.K0.getIntrinsicWidth(), this.K0.getIntrinsicHeight());
        new a(this).execute(str, levelListDrawable);
        return levelListDrawable;
    }

    public final void onCreate(Bundle bundle) {
        String str;
        super.onCreate(bundle);
        setContentView(2131558428);
        ButterKnife.b(this);
        this.backBtn.setOnClickListener(new NG(this, 2));
        String m = ((rp) this).C0.c().a.m("https://meded-api.penpencil.coep_programId_preference");
        if (!TextUtils.isEmpty(m)) {
            C0812sz c0812sz = (C0812sz) pK0.c(C0812sz.class, m);
            this.I0 = c0812sz;
            List<PreferenceData> a = pK0.a(PreferenceData.class, c0812sz.a());
            this.J0 = a;
            Iterator<PreferenceData> it = a.iterator();
            while (true) {
                if (!it.hasNext()) {
                    break;
                }
                PreferenceData next = it.next();
                if (next.getKey().equals("AboutUs") && next.getType().toLowerCase().equals("string")) {
                    this.aboutUs.setText(Html.fromHtml((String) next.getValue()));
                    break;
                }
            }
        }
        C0812sz c0812sz2 = this.I0;
        if (c0812sz2 != null) {
            str = String.valueOf(c0812sz2.b());
        } else {
            a aVar = new a(this.aboutUs);
            aVar.b = 2131558516;
            this.H0 = aVar.b();
            str = "";
        }
        ((rp) this).C0.d().b(str).f(this, new KK0(this, 1));
    }
}