Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,121 @@
package androidx.core.view;
import android.graphics.Point;
import android.view.MotionEvent;
import android.view.View;
import androidx.annotation.NonNull;
/* loaded from: classes.dex */
public class DragStartHelper {
private boolean mDragging;
private int mLastTouchX;
private int mLastTouchY;
private final OnDragStartListener mListener;
private final View.OnLongClickListener mLongClickListener = new View.OnLongClickListener() { // from class: androidx.core.view.DragStartHelper$$ExternalSyntheticLambda0
@Override // android.view.View.OnLongClickListener
public final boolean onLongClick(View view) {
return DragStartHelper.this.onLongClick(view);
}
};
private final View.OnTouchListener mTouchListener = new View.OnTouchListener() { // from class: androidx.core.view.DragStartHelper$$ExternalSyntheticLambda1
@Override // android.view.View.OnTouchListener
public final boolean onTouch(View view, MotionEvent motionEvent) {
return DragStartHelper.this.onTouch(view, motionEvent);
}
};
private final View mView;
public interface OnDragStartListener {
boolean onDragStart(@NonNull View view, @NonNull DragStartHelper dragStartHelper);
}
public DragStartHelper(@NonNull View view, @NonNull OnDragStartListener onDragStartListener) {
this.mView = view;
this.mListener = onDragStartListener;
}
public void attach() {
this.mView.setOnLongClickListener(this.mLongClickListener);
this.mView.setOnTouchListener(this.mTouchListener);
}
public void detach() {
this.mView.setOnLongClickListener(null);
this.mView.setOnTouchListener(null);
}
/* JADX WARN: Code restructure failed: missing block: B:8:0x0018, code lost:
if (r2 != 3) goto L28;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public boolean onTouch(@androidx.annotation.NonNull android.view.View r7, @androidx.annotation.NonNull android.view.MotionEvent r8) {
/*
r6 = this;
float r0 = r8.getX()
int r0 = (int) r0
float r1 = r8.getY()
int r1 = (int) r1
int r2 = r8.getAction()
r3 = 0
if (r2 == 0) goto L49
r4 = 1
if (r2 == r4) goto L46
r5 = 2
if (r2 == r5) goto L1b
r7 = 3
if (r2 == r7) goto L46
goto L4d
L1b:
r2 = 8194(0x2002, float:1.1482E-41)
boolean r2 = androidx.core.view.MotionEventCompat.isFromSource(r8, r2)
if (r2 == 0) goto L4d
int r8 = r8.getButtonState()
r8 = r8 & r4
if (r8 != 0) goto L2b
goto L4d
L2b:
boolean r8 = r6.mDragging
if (r8 == 0) goto L30
goto L4d
L30:
int r8 = r6.mLastTouchX
if (r8 != r0) goto L39
int r8 = r6.mLastTouchY
if (r8 != r1) goto L39
goto L4d
L39:
r6.mLastTouchX = r0
r6.mLastTouchY = r1
androidx.core.view.DragStartHelper$OnDragStartListener r8 = r6.mListener
boolean r7 = r8.onDragStart(r7, r6)
r6.mDragging = r7
return r7
L46:
r6.mDragging = r3
goto L4d
L49:
r6.mLastTouchX = r0
r6.mLastTouchY = r1
L4d:
return r3
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.core.view.DragStartHelper.onTouch(android.view.View, android.view.MotionEvent):boolean");
}
public boolean onLongClick(@NonNull View view) {
if (this.mDragging) {
return true;
}
boolean onDragStart = this.mListener.onDragStart(view, this);
this.mDragging = onDragStart;
return onDragStart;
}
public void getTouchPosition(@NonNull Point point) {
point.set(this.mLastTouchX, this.mLastTouchY);
}
}