- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
282 lines
7.0 KiB
Smali
282 lines
7.0 KiB
Smali
.class Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;
|
|
.super Landroid/view/TouchDelegate;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/appcompat/widget/SearchView;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "UpdatableTouchDelegate"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final mActualBounds:Landroid/graphics/Rect;
|
|
|
|
.field private mDelegateTargeted:Z
|
|
|
|
.field private final mDelegateView:Landroid/view/View;
|
|
|
|
.field private final mSlop:I
|
|
|
|
.field private final mSlopBounds:Landroid/graphics/Rect;
|
|
|
|
.field private final mTargetBounds:Landroid/graphics/Rect;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
.line 1776
|
|
invoke-direct {p0, p1, p3}, Landroid/view/TouchDelegate;-><init>(Landroid/graphics/Rect;Landroid/view/View;)V
|
|
|
|
.line 1777
|
|
invoke-virtual {p3}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledTouchSlop()I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->mSlop:I
|
|
|
|
.line 1778
|
|
new-instance v0, Landroid/graphics/Rect;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->mTargetBounds:Landroid/graphics/Rect;
|
|
|
|
.line 1779
|
|
new-instance v0, Landroid/graphics/Rect;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->mSlopBounds:Landroid/graphics/Rect;
|
|
|
|
.line 1780
|
|
new-instance v0, Landroid/graphics/Rect;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->mActualBounds:Landroid/graphics/Rect;
|
|
|
|
.line 1781
|
|
invoke-virtual {p0, p1, p2}, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->setBounds(Landroid/graphics/Rect;Landroid/graphics/Rect;)V
|
|
|
|
iput-object p3, p0, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->mDelegateView:Landroid/view/View;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 8
|
|
|
|
.line 1794
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
move-result v0
|
|
|
|
float-to-int v0, v0
|
|
|
|
.line 1795
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
move-result v1
|
|
|
|
float-to-int v1, v1
|
|
|
|
.line 1800
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x2
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x1
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
if-eq v2, v5, :cond_2
|
|
|
|
if-eq v2, v3, :cond_2
|
|
|
|
const/4 v6, 0x3
|
|
|
|
if-eq v2, v6, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-boolean v2, p0, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->mDelegateTargeted:Z
|
|
|
|
iput-boolean v4, p0, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->mDelegateTargeted:Z
|
|
|
|
:cond_1
|
|
move v7, v5
|
|
|
|
move v5, v2
|
|
|
|
move v2, v7
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
iget-boolean v2, p0, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->mDelegateTargeted:Z
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
iget-object v6, p0, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->mSlopBounds:Landroid/graphics/Rect;
|
|
|
|
.line 1811
|
|
invoke-virtual {v6, v0, v1}, Landroid/graphics/Rect;->contains(II)Z
|
|
|
|
move-result v6
|
|
|
|
if-nez v6, :cond_1
|
|
|
|
move v5, v2
|
|
|
|
move v2, v4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
iget-object v2, p0, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->mTargetBounds:Landroid/graphics/Rect;
|
|
|
|
.line 1802
|
|
invoke-virtual {v2, v0, v1}, Landroid/graphics/Rect;->contains(II)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
iput-boolean v5, p0, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->mDelegateTargeted:Z
|
|
|
|
move v2, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
:goto_0
|
|
move v2, v5
|
|
|
|
move v5, v4
|
|
|
|
:goto_1
|
|
if-eqz v5, :cond_6
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
iget-object v2, p0, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->mActualBounds:Landroid/graphics/Rect;
|
|
|
|
.line 1822
|
|
invoke-virtual {v2, v0, v1}, Landroid/graphics/Rect;->contains(II)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_5
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->mDelegateView:Landroid/view/View;
|
|
|
|
.line 1826
|
|
invoke-virtual {v0}, Landroid/view/View;->getWidth()I
|
|
|
|
move-result v0
|
|
|
|
div-int/2addr v0, v3
|
|
|
|
int-to-float v0, v0
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->mDelegateView:Landroid/view/View;
|
|
|
|
.line 1827
|
|
invoke-virtual {v1}, Landroid/view/View;->getHeight()I
|
|
|
|
move-result v1
|
|
|
|
div-int/2addr v1, v3
|
|
|
|
int-to-float v1, v1
|
|
|
|
.line 1826
|
|
invoke-virtual {p1, v0, v1}, Landroid/view/MotionEvent;->setLocation(FF)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
iget-object v2, p0, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->mActualBounds:Landroid/graphics/Rect;
|
|
|
|
.line 1830
|
|
iget v3, v2, Landroid/graphics/Rect;->left:I
|
|
|
|
sub-int/2addr v0, v3
|
|
|
|
int-to-float v0, v0
|
|
|
|
iget v2, v2, Landroid/graphics/Rect;->top:I
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
int-to-float v1, v1
|
|
|
|
invoke-virtual {p1, v0, v1}, Landroid/view/MotionEvent;->setLocation(FF)V
|
|
|
|
:goto_2
|
|
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->mDelegateView:Landroid/view/View;
|
|
|
|
.line 1833
|
|
invoke-virtual {v0, p1}, Landroid/view/View;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
move-result v4
|
|
|
|
:cond_6
|
|
return v4
|
|
.end method
|
|
|
|
.method public setBounds(Landroid/graphics/Rect;Landroid/graphics/Rect;)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->mTargetBounds:Landroid/graphics/Rect;
|
|
|
|
.line 1786
|
|
invoke-virtual {v0, p1}, Landroid/graphics/Rect;->set(Landroid/graphics/Rect;)V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->mSlopBounds:Landroid/graphics/Rect;
|
|
|
|
.line 1787
|
|
invoke-virtual {v0, p1}, Landroid/graphics/Rect;->set(Landroid/graphics/Rect;)V
|
|
|
|
iget-object p1, p0, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->mSlopBounds:Landroid/graphics/Rect;
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->mSlop:I
|
|
|
|
neg-int v1, v0
|
|
|
|
neg-int v0, v0
|
|
|
|
.line 1788
|
|
invoke-virtual {p1, v1, v0}, Landroid/graphics/Rect;->inset(II)V
|
|
|
|
iget-object p1, p0, Landroidx/appcompat/widget/SearchView$UpdatableTouchDelegate;->mActualBounds:Landroid/graphics/Rect;
|
|
|
|
.line 1789
|
|
invoke-virtual {p1, p2}, Landroid/graphics/Rect;->set(Landroid/graphics/Rect;)V
|
|
|
|
return-void
|
|
.end method
|