* Decompile and recreate Soul Browser v1.4.85 with APK CI builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix CI build: include bundled google.jks and remove PR trigger The apktool build failed in CI because app/unknown/.../google.jks was excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files and commit the missing resource. Also remove the redundant pull_request workflow trigger. Co-authored-by: KaKi87 <KaKi87@pm.me> * Change package ID to com.github.kaki87.soulbrowser Rename the application ID so the rebuilt APK can be installed alongside the original Soul Browser from Google Play. - Update AndroidManifest package, permissions, providers, and actions - Update R class references in smali (com/github/kaki87/soulbrowser/R) - Update shortcuts.xml targetPackage - Rename app label to "Soul Rebuild" for easy identification Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install compatibility: remove split APK metadata and bundle native libs The rebuilt APK still declared requiredSplitTypes and Play Store split metadata, causing Android to reject standalone installs as incompatible. - Remove requiredSplitTypes and split-related manifest meta-data - Merge native libs from all ABI splits with uncompressed storage - Page-align before signing for extractNativeLibs=false - Add .so to apktool doNotCompress list Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install failure: use apksigner v2/v3 and bundle arm64 native libs Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only produces v1 signatures, causing Android to reject the install. - Sign with apksigner (v1+v2+v3) instead of jarsigner - Add arm64-v8a native libraries from universal Soul Browser 1.4.79 - Set extractNativeLibs=true for reliable sideload installs - Commit stable debug keystore for consistent signatures across builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Add committed debug keystore for consistent APK signatures Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix startup crash: use original classes2.dex desugar libraries Apktool recompiles smali_classes2 into a broken classes2.dex, causing ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init. Inject the original classes2.dex (Java 8+ desugar libs) after apktool build instead of using the recompiled version. Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix missing drawable resources from density split APKs The base APK is an app bundle module; density-specific drawables like seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild, causing Resources$NotFoundException at runtime. - Merge non-9-patch resources from split APKs before apktool build - Sync public.xml IDs from R smali only when backing files exist - Add 713 density-specific resource IDs to public.xml Co-authored-by: KaKi87 <KaKi87@pm.me> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
132 lines
4.7 KiB
Java
132 lines
4.7 KiB
Java
package com.google.android.material.timepicker;
|
|
|
|
import android.content.Context;
|
|
import android.content.res.Configuration;
|
|
import android.os.Build;
|
|
import android.text.Editable;
|
|
import android.text.TextUtils;
|
|
import android.text.TextWatcher;
|
|
import android.util.AttributeSet;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.Checkable;
|
|
import android.widget.EditText;
|
|
import android.widget.FrameLayout;
|
|
import android.widget.TextView;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import com.google.android.material.R;
|
|
import com.google.android.material.chip.Chip;
|
|
import com.google.android.material.internal.TextWatcherAdapter;
|
|
import com.google.android.material.textfield.TextInputLayout;
|
|
|
|
/* loaded from: classes3.dex */
|
|
class ChipTextInputComboView extends FrameLayout implements Checkable {
|
|
public static final /* synthetic */ int i = 0;
|
|
|
|
/* renamed from: c, reason: collision with root package name */
|
|
public final Chip f11991c;
|
|
public final TextInputLayout f;
|
|
public final EditText g;
|
|
public final TextWatcher h;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class TextFormatter extends TextWatcherAdapter {
|
|
public TextFormatter() {
|
|
}
|
|
|
|
@Override // com.google.android.material.internal.TextWatcherAdapter, android.text.TextWatcher
|
|
public final void afterTextChanged(Editable editable) {
|
|
ChipTextInputComboView chipTextInputComboView = ChipTextInputComboView.this;
|
|
Chip chip = chipTextInputComboView.f11991c;
|
|
if (TextUtils.isEmpty(editable)) {
|
|
chip.setText(TimeModel.a(chipTextInputComboView.getResources(), "00", "%02d"));
|
|
return;
|
|
}
|
|
int i = ChipTextInputComboView.i;
|
|
String a2 = TimeModel.a(chipTextInputComboView.getResources(), editable, "%02d");
|
|
if (TextUtils.isEmpty(a2)) {
|
|
a2 = TimeModel.a(chipTextInputComboView.getResources(), "00", "%02d");
|
|
}
|
|
chip.setText(a2);
|
|
}
|
|
}
|
|
|
|
public ChipTextInputComboView(@NonNull Context context, @Nullable AttributeSet attributeSet) {
|
|
super(context, attributeSet, 0);
|
|
LayoutInflater from = LayoutInflater.from(context);
|
|
Chip chip = (Chip) from.inflate(R.layout.material_time_chip, (ViewGroup) this, false);
|
|
this.f11991c = chip;
|
|
chip.setAccessibilityClassName("android.view.View");
|
|
TextInputLayout textInputLayout = (TextInputLayout) from.inflate(R.layout.material_time_input, (ViewGroup) this, false);
|
|
this.f = textInputLayout;
|
|
EditText editText = textInputLayout.getEditText();
|
|
this.g = editText;
|
|
editText.setVisibility(4);
|
|
TextFormatter textFormatter = new TextFormatter();
|
|
this.h = textFormatter;
|
|
editText.addTextChangedListener(textFormatter);
|
|
if (Build.VERSION.SDK_INT >= 24) {
|
|
editText.setImeHintLocales(getContext().getResources().getConfiguration().getLocales());
|
|
}
|
|
addView(chip);
|
|
addView(textInputLayout);
|
|
TextView textView = (TextView) findViewById(R.id.material_label);
|
|
editText.setId(View.generateViewId());
|
|
textView.setLabelFor(editText.getId());
|
|
editText.setSaveEnabled(false);
|
|
editText.setLongClickable(false);
|
|
}
|
|
|
|
@Override // android.widget.Checkable
|
|
public final boolean isChecked() {
|
|
return this.f11991c.isChecked();
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public final void onConfigurationChanged(Configuration configuration) {
|
|
super.onConfigurationChanged(configuration);
|
|
if (Build.VERSION.SDK_INT >= 24) {
|
|
this.g.setImeHintLocales(getContext().getResources().getConfiguration().getLocales());
|
|
}
|
|
}
|
|
|
|
@Override // android.widget.Checkable
|
|
public final void setChecked(boolean z) {
|
|
int i2;
|
|
Chip chip = this.f11991c;
|
|
chip.setChecked(z);
|
|
int i3 = 0;
|
|
if (z) {
|
|
i2 = 0;
|
|
} else {
|
|
i2 = 4;
|
|
}
|
|
EditText editText = this.g;
|
|
editText.setVisibility(i2);
|
|
if (z) {
|
|
i3 = 8;
|
|
}
|
|
chip.setVisibility(i3);
|
|
if (chip.isChecked()) {
|
|
editText.requestFocus();
|
|
editText.post(new androidx.core.view.c(editText, 2));
|
|
}
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public final void setOnClickListener(View.OnClickListener onClickListener) {
|
|
this.f11991c.setOnClickListener(onClickListener);
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public final void setTag(int i2, Object obj) {
|
|
this.f11991c.setTag(i2, obj);
|
|
}
|
|
|
|
@Override // android.widget.Checkable
|
|
public final void toggle() {
|
|
this.f11991c.toggle();
|
|
}
|
|
}
|