Whiux White v3.3版本的 MD5 值为:cb2472159ed9eb4da43a41af3e7eec60
以下内容为反编译后的 AboutActivity.java 源代码,内容仅作参考
package dev.jahir.frames.ui.activities;
import android.os.Bundle;
import android.view.MenuItem;
import androidx.appcompat.widget.Toolbar;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import dev.jahir.frames.BuildConfig;
import dev.jahir.frames.R;
import dev.jahir.frames.data.Preferences;
import dev.jahir.frames.data.models.AboutItem;
import dev.jahir.frames.extensions.context.ContextKt;
import dev.jahir.frames.extensions.views.ToolbarKt;
import dev.jahir.frames.ui.activities.base.BaseThemedActivity;
import dev.jahir.frames.ui.adapters.AboutAdapter;
import e2.f;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import l4.i;
import s3.e;
public class AboutActivity extends BaseThemedActivity<Preferences> {
private final s3.c preferences$delegate = f.W(new AboutActivity$preferences$2(this));
private final s3.c toolbar$delegate = f.W(new AboutActivity$special$$inlined$findView$default$1(this, R.id.toolbar, false));
private final s3.c recyclerView$delegate = f.W(new AboutActivity$special$$inlined$findView$default$2(this, R.id.recycler_view, false));
private final String dashboardName = BuildConfig.DASHBOARD_NAME;
private final ArrayList<AboutItem> getDesignerAboutItems() {
ArrayList<AboutItem> arrayList = new ArrayList<>();
String[] stringArray$default = ContextKt.stringArray$default(this, R.array.credits_titles, null, 2, null);
String[] stringArray$default2 = ContextKt.stringArray$default(this, R.array.credits_descriptions, null, 2, null);
String[] stringArray$default3 = ContextKt.stringArray$default(this, R.array.credits_photos, null, 2, null);
String[] stringArray$default4 = ContextKt.stringArray$default(this, R.array.credits_buttons, null, 2, null);
String[] stringArray$default5 = ContextKt.stringArray$default(this, R.array.credits_links, null, 2, null);
int length = stringArray$default.length;
int length2 = stringArray$default2.length;
int length3 = stringArray$default3.length;
int length4 = stringArray$default4.length;
int length5 = stringArray$default5.length;
if (length == length2 && length == length3 && length == length4 && length == length5) {
int length6 = stringArray$default.length;
int i6 = 0;
int i7 = 0;
while (i6 < length6) {
String str = stringArray$default[i6];
int i8 = i7 + 1;
List I0 = i.I0(stringArray$default4[i7], new String[]{"|"});
List I02 = i.I0(stringArray$default5[i7], new String[]{"|"});
ArrayList arrayList2 = new ArrayList();
if (I0.size() == I02.size()) {
int i9 = 0;
for (Iterator it = I0.iterator(); it.hasNext(); it = it) {
Object next = it.next();
int i10 = i9 + 1;
if (i9 < 0) {
f.C0();
throw null;
}
arrayList2.add(new e((String) next, I02.get(i9)));
i9 = i10;
}
continue;
}
arrayList.add(new AboutItem(str, stringArray$default2[i7], stringArray$default3[i7], arrayList2));
i6++;
i7 = i8;
}
}
return arrayList;
}
private final ArrayList<AboutItem> getInternalAboutItems() {
ArrayList<AboutItem> additionalInternalAboutItems = getAdditionalInternalAboutItems();
additionalInternalAboutItems.add(new AboutItem("Jahir Fiquitiva", ContextKt.string$default(this, R.string.jahir_description, null, 2, null), "https://jahir.dev/static/images/jahir/jahir.jpg", f.d(new e("Website", "https://jahir.dev"), new e("GitHub", "https://github.com/jahirfiquitiva"))));
if (shouldIncludeContributors()) {
additionalInternalAboutItems.add(new AboutItem("Eduardo Pratti", ContextKt.string$default(this, R.string.eduardo_description, null, 2, null), "https://pbs.twimg.com/profile_images/560688750247051264/seXz0Y25_400x400.jpeg", f.d(new e("Website", "https://pratti.design/"))));
additionalInternalAboutItems.add(new AboutItem("Patryk Michalik", ContextKt.string$default(this, R.string.patryk_description, null, 2, null), "https://patrykmichalik.com/logo-on-indigo.png", f.d(new e("Website", "https://patrykmichalik.com"))));
}
return additionalInternalAboutItems;
}
private final RecyclerView getRecyclerView() {
return (RecyclerView) this.recyclerView$delegate.getValue();
}
private final Toolbar getToolbar() {
return (Toolbar) this.toolbar$delegate.getValue();
}
@Override
public void citrus() {
}
public ArrayList<AboutItem> getAdditionalInternalAboutItems() {
return new ArrayList<>();
}
public String getDashboardName() {
return this.dashboardName;
}
@Override
public Preferences getPreferences() {
return (Preferences) this.preferences$delegate.getValue();
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.activity_recyclerview);
setSupportActionBar(getToolbar());
androidx.appcompat.app.b supportActionBar = getSupportActionBar();
if (supportActionBar != null) {
supportActionBar.r();
supportActionBar.m(true);
supportActionBar.n();
}
Toolbar toolbar = getToolbar();
if (toolbar != null) {
ToolbarKt.tint$default(toolbar, 0, 1, null);
}
AboutAdapter aboutAdapter = new AboutAdapter(getDesignerAboutItems(), getInternalAboutItems(), getDashboardName());
RecyclerView recyclerView = getRecyclerView();
if (recyclerView != null) {
recyclerView.setLayoutManager(new LinearLayoutManager(1));
}
RecyclerView recyclerView2 = getRecyclerView();
if (recyclerView2 == null) {
return;
}
recyclerView2.setAdapter(aboutAdapter);
}
@Override
public boolean onOptionsItemSelected(MenuItem menuItem) {
y3.f.n("item", menuItem);
if (menuItem.getItemId() == 16908332) {
supportFinishAfterTransition();
}
return super.onOptionsItemSelected(menuItem);
}
public boolean shouldIncludeContributors() {
return true;
}
}