CAG v5.7.4版本的 MD5 值为:bc57ead76a7a30559f0708e9d60d749f
以下内容为反编译后的 AboutUsActivity.java 源代码,内容仅作参考
package org.godfootsteps.more;
import android.content.res.Configuration;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import androidx.appcompat.widget.Toolbar;
import androidx.core.widget.NestedScrollView;
import androidx.recyclerview.widget.RecyclerView;
import androidx.viewpager3.widget.ViewPager3;
import carbon.custom.LoadingLayout;
import carbon.widget.TextView;
import com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.WebUiControllerView;
import com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.YouTubePlayerLayout;
import com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.YouTubePlayerView;
import d.c.a.j.v;
import e.i.i.a0;
import h.a.a.g.b;
import i.c.a.c.a0;
import i.c.a.c.n0;
import i.c.a.c.y;
import i.j.a.e.t.d;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicInteger;
import kotlin.Metadata;
import n.c;
import n.i.b.h;
import org.commons.screenadapt.recyclerview.ScreenListAdapter;
import org.commons.screenadapt.recyclerview.ScreenViewHolder;
import org.godfootsteps.arch.R$color;
import org.godfootsteps.arch.api.AppClient;
import org.godfootsteps.arch.base.BaseActivity;
import org.godfootsteps.more.AboutUsActivity;
import org.godfootsteps.more.AboutUsActivity$initData$1;
import org.godfootsteps.more.R$id;
import org.godfootsteps.more.view.PlatformView;
import org.godfootsteps.router.model.AboutUsModel;
@b
@Metadata(d1 = {"\u0000`\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0007\u0018\u00002\u00020\u0001:\u0001-B\u0005¢\u0006\u0002\u0010\u0002J\b\u0010\u0011\u001a\u00020\u0012H\u0002J\u0018\u0010\u0013\u001a\u00020\u00122\u000e\u0010\u0014\u001a\n\u0012\u0004\u0012\u00020\u0016\u0018\u00010\u0015H\u0002J\u0018\u0010\u0017\u001a\u00020\u00122\u000e\u0010\u0018\u001a\n\u0012\u0004\u0012\u00020\u0016\u0018\u00010\u0015H\u0002J\u0012\u0010\u0019\u001a\u00020\u00122\b\u0010\u001a\u001a\u0004\u0018\u00010\u001bH\u0002J\u0018\u0010\u001c\u001a\u00020\u00122\u000e\u0010\u001d\u001a\n\u0012\u0004\u0012\u00020\u001e\u0018\u00010\u0015H\u0002J\b\u0010\u001f\u001a\u00020 H\u0014J\b\u0010!\u001a\u00020\u0012H\u0014J\b\u0010\"\u001a\u00020\u0012H\u0014J\u0010\u0010#\u001a\u00020\u00122\u0006\u0010$\u001a\u00020\u0004H\u0002J\b\u0010%\u001a\u00020\u0012H\u0016J\u0010\u0010&\u001a\u00020\u00122\u0006\u0010'\u001a\u00020(H\u0016J\b\u0010)\u001a\u00020\u0012H\u0014J\f\u0010*\u001a\u00020+*\u00020,H\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u000e¢\u0006\u0002\n\u0000R\u001b\u0010\u0005\u001a\u00020\u00068BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\t\u0010\n\u001a\u0004\b\u0007\u0010\bR\u000e\u0010\u000b\u001a\u00020\u0004X\u0082\u000e¢\u0006\u0002\n\u0000R\u001b\u0010\f\u001a\u00020\r8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u0010\u0010\n\u001a\u0004\b\u000e\u0010\u000f¨\u0006."}, d2 = {"Lorg/godfootsteps/more/AboutUsActivity;", "Lorg/godfootsteps/arch/base/BaseActivity;", "()V", "articleBaseUrl", "", "controlView", "Lcom/pierfrancescosoffritti/androidyoutubeplayer/core/player/views/WebUiControllerView;", "getControlView", "()Lcom/pierfrancescosoffritti/androidyoutubeplayer/core/player/views/WebUiControllerView;", "controlView$delegate", "Lkotlin/Lazy;", "imageBaseUrl", "playerView", "Lcom/pierfrancescosoffritti/androidyoutubeplayer/core/player/views/YouTubePlayerView;", "getPlayerView", "()Lcom/pierfrancescosoffritti/androidyoutubeplayer/core/player/views/YouTubePlayerView;", "playerView$delegate", "adaptPlayerView", "", "bindArticles", "aboutRead", "", "Lorg/godfootsteps/router/model/AboutUsModel$ArticleBean;", "bindAsks", "aboutQuestion", "bindGallery", "aboutImage", "Lorg/godfootsteps/router/model/AboutUsModel$AboutImageBean;", "bindPlatform", "aboutLink", "Lorg/godfootsteps/router/model/AboutUsModel$AboutLinkBean;", "getLayoutId", "", "initData", "initView", "loadVideoImage", "churchId", "onBackPressed", "onConfigurationChanged", "newConfig", "Landroid/content/res/Configuration;", "onResume", "isOffsetScreen", "", "Landroid/view/View;", "ArticleAdapter", "more_release"}, k = 1, mv = {1, 5, 1}, xi = 48)
public final class AboutUsActivity extends BaseActivity {
public static final int f15928o = 0;
public String f15929k = "";
public String f15930l = "";
public final c f15931m = d.n3(new n.i.a.a<YouTubePlayerView>() {
{
super(0);
}
@Override
public final YouTubePlayerView invoke() {
return (YouTubePlayerView) AboutUsActivity.this.findViewById(R$id.player_view);
}
});
public final c f15932n = d.n3(new n.i.a.a<WebUiControllerView>() {
{
super(0);
}
@Override
public final WebUiControllerView invoke() {
return (WebUiControllerView) AboutUsActivity.this.findViewById(R$id.controls);
}
});
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0086\u0004\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0013\u0012\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00020\u0004¢\u0006\u0002\u0010\u0005J\b\u0010\u0006\u001a\u00020\u0007H\u0014J\u001a\u0010\b\u001a\u00020\t2\b\u0010\n\u001a\u0004\u0018\u00010\u000b2\u0006\u0010\f\u001a\u00020\u0002H\u0014¨\u0006\r"}, d2 = {"Lorg/godfootsteps/more/AboutUsActivity$ArticleAdapter;", "Lorg/commons/screenadapt/recyclerview/ScreenListAdapter;", "Lorg/godfootsteps/router/model/AboutUsModel$ArticleBean;", "list", "", "(Lorg/godfootsteps/more/AboutUsActivity;Ljava/util/List;)V", "getLayoutId", "", "onBind", "", "holder", "Lorg/commons/screenadapt/recyclerview/ScreenViewHolder;", "item", "more_release"}, k = 1, mv = {1, 5, 1}, xi = 48)
public final class ArticleAdapter extends ScreenListAdapter<AboutUsModel.ArticleBean> {
public final AboutUsActivity f15933k;
public ArticleAdapter(AboutUsActivity aboutUsActivity, List<? extends AboutUsModel.ArticleBean> list) {
super(null, 1);
h.e(aboutUsActivity, "this$0");
h.e(list, "list");
this.f15933k = aboutUsActivity;
m(list);
}
@Override
public int h() {
return R$layout.item_number_title;
}
@Override
public void i(ScreenViewHolder screenViewHolder, AboutUsModel.ArticleBean articleBean) {
final AboutUsModel.ArticleBean articleBean2 = articleBean;
h.e(articleBean2, "item");
h.c(screenViewHolder);
final AboutUsActivity aboutUsActivity = this.f15933k;
if (v.i()) {
View view = screenViewHolder.itemView;
i.a.b.a.a.b0(view, "itemView", 48.0f, view);
}
View view2 = screenViewHolder.f15173i;
((TextView) (view2 == null ? null : view2.findViewById(R$id.tv_number))).setText(String.valueOf(screenViewHolder.getLayoutPosition() + 1));
View view3 = screenViewHolder.f15173i;
((android.widget.TextView) (view3 != null ? view3.findViewById(R$id.tv_title) : null)).setText(articleBean2.getTitle());
screenViewHolder.itemView.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view4) {
AboutUsActivity aboutUsActivity2 = AboutUsActivity.this;
AboutUsModel.ArticleBean articleBean3 = articleBean2;
n.i.b.h.e(aboutUsActivity2, "this$0");
n.i.b.h.e(articleBean3, "$item");
d.c.i.c cVar = (d.c.i.c) k.a.a.a.a.b(d.c.i.c.class);
if (cVar == null) {
return;
}
StringBuilder sb = new StringBuilder();
Objects.requireNonNull(AppClient.a);
sb.append("https://appservercn.kingdomsalvation.org");
sb.append(aboutUsActivity2.f15930l);
sb.append((Object) articleBean3.getName());
cVar.g(sb.toString(), true);
}
});
}
}
@Metadata(d1 = {"\u0000\u0013\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J\b\u0010\u0002\u001a\u00020\u0003H\u0016J\b\u0010\u0004\u001a\u00020\u0003H\u0016¨\u0006\u0005"}, d2 = {"org/godfootsteps/more/AboutUsActivity$initView$5", "Lcom/pierfrancescosoffritti/androidyoutubeplayer/core/player/listeners/YouTubePlayerFullScreenListener;", "onYouTubePlayerEnterFullScreen", "", "onYouTubePlayerExitFullScreen", "more_release"}, k = 1, mv = {1, 5, 1}, xi = 48)
public static final class a implements i.p.a.a.a.c.c {
public a() {
}
@Override
public void b() {
AboutUsActivity aboutUsActivity = AboutUsActivity.this;
int i2 = AboutUsActivity.f15928o;
aboutUsActivity.Z();
n0.q(AboutUsActivity.this.a0(), 0);
Toolbar toolbar = (Toolbar) AboutUsActivity.this.findViewById(R$id.toolbar);
h.d(toolbar, "toolbar");
n0.t(toolbar);
android.widget.TextView textView = (android.widget.TextView) AboutUsActivity.this.findViewById(R$id.tv_intro_title);
h.d(textView, "tv_intro_title");
n0.t(textView);
android.widget.TextView textView2 = (android.widget.TextView) AboutUsActivity.this.findViewById(R$id.tv_intro_content);
h.d(textView2, "tv_intro_content");
n0.t(textView2);
if (((RecyclerView) AboutUsActivity.this.findViewById(R$id.rv_article)).getAdapter() != null) {
LinearLayout linearLayout = (LinearLayout) AboutUsActivity.this.findViewById(R$id.ll_article);
h.d(linearLayout, "ll_article");
n0.t(linearLayout);
}
if (((RecyclerView) AboutUsActivity.this.findViewById(R$id.rv_ask)).getAdapter() != null) {
LinearLayout linearLayout2 = (LinearLayout) AboutUsActivity.this.findViewById(R$id.ll_ask);
h.d(linearLayout2, "ll_ask");
n0.t(linearLayout2);
}
if ((v.j() && ((ViewPager3) AboutUsActivity.this.findViewById(R$id.view_pager)).getAdapter() != null) || (v.i() && ((RecyclerView) AboutUsActivity.this.findViewById(R$id.rv_gallery)).getAdapter() != null)) {
LinearLayout linearLayout3 = (LinearLayout) AboutUsActivity.this.findViewById(R$id.ll_gallery);
h.d(linearLayout3, "ll_gallery");
n0.t(linearLayout3);
}
if (((PlatformView) AboutUsActivity.this.findViewById(R$id.platform_view)).getChildCount() > 0) {
LinearLayout linearLayout4 = (LinearLayout) AboutUsActivity.this.findViewById(R$id.ll_platform);
h.d(linearLayout4, "ll_platform");
n0.t(linearLayout4);
}
if (v.i()) {
YouTubePlayerLayout youTubePlayerLayout = (YouTubePlayerLayout) AboutUsActivity.this.findViewById(R$id.player_layout);
h.d(youTubePlayerLayout, "player_layout");
n0.o(youTubePlayerLayout, y.E(24.0f));
}
final AboutUsActivity aboutUsActivity2 = AboutUsActivity.this;
a0.a.postDelayed(new Runnable() {
@Override
public final void run() {
AboutUsActivity aboutUsActivity3 = AboutUsActivity.this;
n.i.b.h.e(aboutUsActivity3, "this$0");
e.c0.a.e0(aboutUsActivity3.getWindow(), !e.c0.a.R());
if (d.c.a.j.v.f()) {
aboutUsActivity3.getWindow().setStatusBarColor(e.i.b.a.b(aboutUsActivity3, R$color.toolbar_color));
} else if (e.c0.a.R()) {
} else {
aboutUsActivity3.getWindow().setStatusBarColor(-3355444);
}
}
}, 60L);
}
@Override
public void c() {
AboutUsActivity aboutUsActivity = AboutUsActivity.this;
int i2 = AboutUsActivity.f15928o;
aboutUsActivity.Z();
n0.q(AboutUsActivity.this.a0(), 0);
Toolbar toolbar = (Toolbar) AboutUsActivity.this.findViewById(R$id.toolbar);
h.d(toolbar, "toolbar");
n0.c(toolbar, false, 1);
android.widget.TextView textView = (android.widget.TextView) AboutUsActivity.this.findViewById(R$id.tv_intro_title);
h.d(textView, "tv_intro_title");
n0.c(textView, false, 1);
android.widget.TextView textView2 = (android.widget.TextView) AboutUsActivity.this.findViewById(R$id.tv_intro_content);
h.d(textView2, "tv_intro_content");
n0.c(textView2, false, 1);
LinearLayout linearLayout = (LinearLayout) AboutUsActivity.this.findViewById(R$id.ll_article);
h.d(linearLayout, "ll_article");
n0.c(linearLayout, false, 1);
LinearLayout linearLayout2 = (LinearLayout) AboutUsActivity.this.findViewById(R$id.ll_gallery);
h.d(linearLayout2, "ll_gallery");
n0.c(linearLayout2, false, 1);
LinearLayout linearLayout3 = (LinearLayout) AboutUsActivity.this.findViewById(R$id.ll_ask);
h.d(linearLayout3, "ll_ask");
n0.c(linearLayout3, false, 1);
LinearLayout linearLayout4 = (LinearLayout) AboutUsActivity.this.findViewById(R$id.ll_platform);
h.d(linearLayout4, "ll_platform");
n0.c(linearLayout4, false, 1);
if (v.i()) {
YouTubePlayerLayout youTubePlayerLayout = (YouTubePlayerLayout) AboutUsActivity.this.findViewById(R$id.player_layout);
h.d(youTubePlayerLayout, "player_layout");
n0.o(youTubePlayerLayout, 0);
}
}
}
@Override
public int Q() {
return R$layout.activity_about_us;
}
@Override
public void R() {
((LoadingLayout) findViewById(R$id.loading_layout)).k();
n.m.t.a.p.m.e1.a.f2(new AboutUsActivity$initData$1(this));
}
@Override
public void W() {
Z();
((Toolbar) findViewById(R$id.toolbar)).setNavigationOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
AboutUsActivity aboutUsActivity = AboutUsActivity.this;
int i2 = AboutUsActivity.f15928o;
n.i.b.h.e(aboutUsActivity, "this$0");
aboutUsActivity.onBackPressed();
}
});
((LoadingLayout) findViewById(R$id.loading_layout)).setButtonRetryClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
AboutUsActivity aboutUsActivity = AboutUsActivity.this;
int i2 = AboutUsActivity.f15928o;
n.i.b.h.e(aboutUsActivity, "this$0");
((LoadingLayout) aboutUsActivity.findViewById(R$id.loading_layout)).k();
n.m.t.a.p.m.e1.a.f2(new AboutUsActivity$initData$1(aboutUsActivity));
}
});
AtomicInteger atomicInteger = e.i.i.a0.a;
a0.i.t((RecyclerView) findViewById(R$id.rv_article), false);
a0.i.t((RecyclerView) findViewById(R$id.rv_ask), false);
if (v.j()) {
int i2 = R$id.view_pager;
ViewPager3 viewPager3 = (ViewPager3) findViewById(i2);
ViewGroup.LayoutParams layoutParams = viewPager3 == null ? null : viewPager3.getLayoutParams();
if (layoutParams != null) {
layoutParams.height = ((Math.min(y.L(), y.K()) - y.E(32.0f)) * 9) / 16;
}
ViewPager3 viewPager32 = (ViewPager3) findViewById(i2);
if (viewPager32 != null) {
viewPager32.requestLayout();
}
}
((NestedScrollView) findViewById(R$id.scroll_view)).setOnScrollChangeListener(new NestedScrollView.b() {
@Override
public final void w(NestedScrollView nestedScrollView, int i3, int i4, int i5, int i6) {
AboutUsActivity aboutUsActivity = AboutUsActivity.this;
int i7 = AboutUsActivity.f15928o;
n.i.b.h.e(aboutUsActivity, "this$0");
if (aboutUsActivity.c0(aboutUsActivity.b0())) {
aboutUsActivity.b0().getYoutubePlayer().pause();
}
}
});
n.m.t.a.p.m.e1.a.o2(this, new n.i.a.a<Boolean>() {
{
super(0);
}
@Override
public final Boolean invoke() {
AboutUsActivity aboutUsActivity = AboutUsActivity.this;
int i3 = AboutUsActivity.f15928o;
return Boolean.valueOf(aboutUsActivity.c0(aboutUsActivity.b0()));
}
});
b0().c(new a());
YouTubePlayerLayout youTubePlayerLayout = (YouTubePlayerLayout) findViewById(R$id.player_layout);
youTubePlayerLayout.f3909i = false;
ImageView imageView = (ImageView) youTubePlayerLayout.d(com.pierfrancescosoffritti.androidyoutubeplayer.R$id.iv_back);
h.d(imageView, "iv_back");
imageView.setVisibility(8);
n0.q(a0(), 0);
a0().setLayoutDirection(0);
findViewById(R$id.seek_bar).setLayoutDirection(0);
}
public final void Z() {
if (b0().f3926r) {
int W0 = d.W0(this);
int V0 = d.V0(this);
int i2 = R$id.player_layout;
ViewGroup.LayoutParams layoutParams = ((YouTubePlayerLayout) findViewById(i2)).getLayoutParams();
ViewGroup.LayoutParams layoutParams2 = b0().getLayoutParams();
if (Math.max(W0, V0) / Math.min(W0, V0) <= 1.7777778f) {
a0().getLayoutParams().width = -1;
layoutParams2.width = -1;
layoutParams2.height = -2;
} else {
a0().getLayoutParams().width = ((Math.min(W0, V0) * 16) / 9) - y.E(260.0f);
layoutParams2.height = -1;
layoutParams2.width = (Math.min(W0, V0) * 16) / 9;
}
layoutParams.width = -1;
layoutParams.height = -1;
((YouTubePlayerLayout) findViewById(i2)).setLayoutParams(layoutParams);
b0().setLayoutParams(layoutParams2);
b0().getThumbnailView().getLayoutParams().width = layoutParams2.width;
} else if (v.i()) {
float f0 = y.f0() * 0.7f;
float e0 = y.e0() * 0.7f;
YouTubePlayerLayout youTubePlayerLayout = (YouTubePlayerLayout) findViewById(R$id.player_layout);
h.d(youTubePlayerLayout, "player_layout");
new d.a.a.a.a(youTubePlayerLayout, y.O0(Math.min(f0, e0)), y.O0(Math.max(f0, e0))).a();
}
}
public final WebUiControllerView a0() {
Object value = this.f15932n.getValue();
h.d(value, "<get-controlView>(...)");
return (WebUiControllerView) value;
}
public final YouTubePlayerView b0() {
Object value = this.f15931m.getValue();
h.d(value, "<get-playerView>(...)");
return (YouTubePlayerView) value;
}
public final boolean c0(View view) {
int[] iArr = new int[2];
view.getLocationOnScreen(iArr);
if (iArr[1] < 0) {
if (y.E(56.0f) + e.c0.a.E() + Math.abs(iArr[1]) >= view.getHeight()) {
return true;
}
}
return false;
}
@Override
public void onBackPressed() {
if (b0().f3926r) {
b0().k();
} else {
super.onBackPressed();
}
}
@Override
public void onConfigurationChanged(Configuration configuration) {
h.e(configuration, "newConfig");
super.onConfigurationChanged(configuration);
Z();
i.c.a.c.a0.a.postDelayed(new Runnable() {
@Override
public final void run() {
AboutUsActivity aboutUsActivity = AboutUsActivity.this;
int i2 = AboutUsActivity.f15928o;
n.i.b.h.e(aboutUsActivity, "this$0");
if (aboutUsActivity.c0(aboutUsActivity.b0())) {
aboutUsActivity.b0().getYoutubePlayer().pause();
}
}
}, 400L);
}
@Override
public void onResume() {
super.onResume();
if (b0().f3926r) {
n.m.t.a.p.m.e1.a.a1(this);
}
}
}