* 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>
161 lines
5.5 KiB
Java
161 lines
5.5 KiB
Java
package com.google.android.material.textfield;
|
|
|
|
import android.animation.Animator;
|
|
import android.animation.AnimatorListenerAdapter;
|
|
import android.animation.AnimatorSet;
|
|
import android.animation.TimeInterpolator;
|
|
import android.animation.ValueAnimator;
|
|
import android.view.View;
|
|
import android.widget.EditText;
|
|
import com.google.android.material.R;
|
|
import com.google.android.material.animation.AnimationUtils;
|
|
import com.google.android.material.motion.MotionUtils;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes3.dex */
|
|
public class ClearTextEndIconDelegate extends EndIconDelegate {
|
|
public final int e;
|
|
public final int f;
|
|
public final TimeInterpolator g;
|
|
public final TimeInterpolator h;
|
|
public EditText i;
|
|
public final a j;
|
|
public final b k;
|
|
public AnimatorSet l;
|
|
public ValueAnimator m;
|
|
|
|
public ClearTextEndIconDelegate(EndCompoundLayout endCompoundLayout) {
|
|
super(endCompoundLayout);
|
|
this.j = new a(this, 0);
|
|
this.k = new b(this, 0);
|
|
this.e = MotionUtils.c(endCompoundLayout.getContext(), R.attr.motionDurationShort3, 100);
|
|
this.f = MotionUtils.c(endCompoundLayout.getContext(), R.attr.motionDurationShort3, 150);
|
|
this.g = MotionUtils.d(endCompoundLayout.getContext(), R.attr.motionEasingLinearInterpolator, AnimationUtils.f11631a);
|
|
this.h = MotionUtils.d(endCompoundLayout.getContext(), R.attr.motionEasingEmphasizedInterpolator, AnimationUtils.d);
|
|
}
|
|
|
|
@Override // com.google.android.material.textfield.EndIconDelegate
|
|
public final void a() {
|
|
if (this.b.t != null) {
|
|
return;
|
|
}
|
|
s(t());
|
|
}
|
|
|
|
@Override // com.google.android.material.textfield.EndIconDelegate
|
|
public final int c() {
|
|
return R.string.clear_text_end_icon_content_description;
|
|
}
|
|
|
|
@Override // com.google.android.material.textfield.EndIconDelegate
|
|
public final int d() {
|
|
return R.drawable.mtrl_ic_cancel;
|
|
}
|
|
|
|
@Override // com.google.android.material.textfield.EndIconDelegate
|
|
public final View.OnFocusChangeListener e() {
|
|
return this.k;
|
|
}
|
|
|
|
@Override // com.google.android.material.textfield.EndIconDelegate
|
|
public final View.OnClickListener f() {
|
|
return this.j;
|
|
}
|
|
|
|
@Override // com.google.android.material.textfield.EndIconDelegate
|
|
public final View.OnFocusChangeListener g() {
|
|
return this.k;
|
|
}
|
|
|
|
@Override // com.google.android.material.textfield.EndIconDelegate
|
|
public final void l(EditText editText) {
|
|
this.i = editText;
|
|
this.f11968a.setEndIconVisible(t());
|
|
}
|
|
|
|
@Override // com.google.android.material.textfield.EndIconDelegate
|
|
public final void o(boolean z) {
|
|
if (this.b.t == null) {
|
|
return;
|
|
}
|
|
s(z);
|
|
}
|
|
|
|
@Override // com.google.android.material.textfield.EndIconDelegate
|
|
public final void q() {
|
|
ValueAnimator ofFloat = ValueAnimator.ofFloat(0.8f, 1.0f);
|
|
ofFloat.setInterpolator(this.h);
|
|
ofFloat.setDuration(this.f);
|
|
ofFloat.addUpdateListener(new c(this, 1));
|
|
ValueAnimator ofFloat2 = ValueAnimator.ofFloat(0.0f, 1.0f);
|
|
TimeInterpolator timeInterpolator = this.g;
|
|
ofFloat2.setInterpolator(timeInterpolator);
|
|
int i = this.e;
|
|
ofFloat2.setDuration(i);
|
|
ofFloat2.addUpdateListener(new c(this, 0));
|
|
AnimatorSet animatorSet = new AnimatorSet();
|
|
this.l = animatorSet;
|
|
animatorSet.playTogether(ofFloat, ofFloat2);
|
|
this.l.addListener(new AnimatorListenerAdapter() { // from class: com.google.android.material.textfield.ClearTextEndIconDelegate.1
|
|
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
|
public final void onAnimationStart(Animator animator) {
|
|
ClearTextEndIconDelegate.this.b.h(true);
|
|
}
|
|
});
|
|
ValueAnimator ofFloat3 = ValueAnimator.ofFloat(1.0f, 0.0f);
|
|
ofFloat3.setInterpolator(timeInterpolator);
|
|
ofFloat3.setDuration(i);
|
|
ofFloat3.addUpdateListener(new c(this, 0));
|
|
this.m = ofFloat3;
|
|
ofFloat3.addListener(new AnimatorListenerAdapter() { // from class: com.google.android.material.textfield.ClearTextEndIconDelegate.2
|
|
@Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
|
|
public final void onAnimationEnd(Animator animator) {
|
|
ClearTextEndIconDelegate.this.b.h(false);
|
|
}
|
|
});
|
|
}
|
|
|
|
@Override // com.google.android.material.textfield.EndIconDelegate
|
|
public final void r() {
|
|
EditText editText = this.i;
|
|
if (editText != null) {
|
|
editText.post(new d(0, this));
|
|
}
|
|
}
|
|
|
|
public final void s(boolean z) {
|
|
boolean z2;
|
|
if (this.b.d() == z) {
|
|
z2 = true;
|
|
} else {
|
|
z2 = false;
|
|
}
|
|
if (z && !this.l.isRunning()) {
|
|
this.m.cancel();
|
|
this.l.start();
|
|
if (z2) {
|
|
this.l.end();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (!z) {
|
|
this.l.cancel();
|
|
this.m.start();
|
|
if (z2) {
|
|
this.m.end();
|
|
}
|
|
}
|
|
}
|
|
|
|
public final boolean t() {
|
|
EditText editText = this.i;
|
|
if (editText != null) {
|
|
if ((editText.hasFocus() || this.d.hasFocus()) && this.i.getText().length() > 0) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
return false;
|
|
}
|
|
}
|