Changes of com.discord v889
This commit is contained in:
parent
978663884f
commit
dc8b0b8647
7005 changed files with 392258 additions and 379599 deletions
|
@ -940,40 +940,41 @@
|
|||
.end method
|
||||
|
||||
.method private setSwitchTypefaceByIndex(II)V
|
||||
.locals 0
|
||||
.locals 1
|
||||
|
||||
packed-switch p1, :pswitch_data_0
|
||||
const/4 v0, 0x1
|
||||
|
||||
if-eq p1, v0, :cond_2
|
||||
|
||||
const/4 v0, 0x2
|
||||
|
||||
if-eq p1, v0, :cond_1
|
||||
|
||||
const/4 v0, 0x3
|
||||
|
||||
if-eq p1, v0, :cond_0
|
||||
|
||||
const/4 p1, 0x0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:pswitch_0
|
||||
:cond_0
|
||||
sget-object p1, Landroid/graphics/Typeface;->MONOSPACE:Landroid/graphics/Typeface;
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:pswitch_1
|
||||
:cond_1
|
||||
sget-object p1, Landroid/graphics/Typeface;->SERIF:Landroid/graphics/Typeface;
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:pswitch_2
|
||||
:cond_2
|
||||
sget-object p1, Landroid/graphics/Typeface;->SANS_SERIF:Landroid/graphics/Typeface;
|
||||
|
||||
:goto_0
|
||||
invoke-virtual {p0, p1, p2}, Landroidx/appcompat/widget/SwitchCompat;->setSwitchTypeface(Landroid/graphics/Typeface;I)V
|
||||
|
||||
return-void
|
||||
|
||||
nop
|
||||
|
||||
:pswitch_data_0
|
||||
.packed-switch 0x1
|
||||
:pswitch_2
|
||||
:pswitch_1
|
||||
:pswitch_0
|
||||
.end packed-switch
|
||||
.end method
|
||||
|
||||
.method private stopDrag(Landroid/view/MotionEvent;)V
|
||||
|
@ -1132,7 +1133,7 @@
|
|||
|
||||
add-int/2addr v5, v7
|
||||
|
||||
if-eqz v6, :cond_5
|
||||
if-eqz v6, :cond_4
|
||||
|
||||
iget v7, v6, Landroid/graphics/Rect;->left:I
|
||||
|
||||
|
@ -1188,7 +1189,7 @@
|
|||
|
||||
iget v9, v0, Landroid/graphics/Rect;->bottom:I
|
||||
|
||||
if-le v8, v9, :cond_4
|
||||
if-le v8, v9, :cond_5
|
||||
|
||||
iget v6, v6, Landroid/graphics/Rect;->bottom:I
|
||||
|
||||
|
@ -1201,13 +1202,9 @@
|
|||
goto :goto_2
|
||||
|
||||
:cond_4
|
||||
move v6, v4
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_5
|
||||
move v7, v2
|
||||
|
||||
:cond_5
|
||||
move v6, v4
|
||||
|
||||
:goto_2
|
||||
|
@ -1975,9 +1972,10 @@
|
|||
|
||||
iget p4, p0, Landroidx/appcompat/widget/SwitchCompat;->mSwitchHeight:I
|
||||
|
||||
:goto_3
|
||||
add-int/2addr p4, p2
|
||||
|
||||
goto :goto_3
|
||||
goto :goto_4
|
||||
|
||||
:cond_3
|
||||
invoke-virtual {p0}, Landroidx/appcompat/widget/SwitchCompat;->getHeight()I
|
||||
|
@ -1994,7 +1992,7 @@
|
|||
|
||||
sub-int p2, p4, p2
|
||||
|
||||
goto :goto_3
|
||||
goto :goto_4
|
||||
|
||||
:cond_4
|
||||
invoke-virtual {p0}, Landroidx/appcompat/widget/SwitchCompat;->getPaddingTop()I
|
||||
|
@ -2021,9 +2019,9 @@
|
|||
|
||||
sub-int/2addr p2, p5
|
||||
|
||||
add-int/2addr p4, p2
|
||||
goto :goto_3
|
||||
|
||||
:goto_3
|
||||
:goto_4
|
||||
iput p1, p0, Landroidx/appcompat/widget/SwitchCompat;->mSwitchLeft:I
|
||||
|
||||
iput p2, p0, Landroidx/appcompat/widget/SwitchCompat;->mSwitchTop:I
|
||||
|
@ -2269,22 +2267,34 @@
|
|||
|
||||
move-result v0
|
||||
|
||||
const/4 v1, 0x2
|
||||
const/4 v1, 0x1
|
||||
|
||||
const/4 v2, 0x1
|
||||
if-eqz v0, :cond_a
|
||||
|
||||
packed-switch v0, :pswitch_data_0
|
||||
const/4 v2, 0x2
|
||||
|
||||
if-eq v0, v1, :cond_8
|
||||
|
||||
if-eq v0, v2, :cond_0
|
||||
|
||||
const/4 v3, 0x3
|
||||
|
||||
if-eq v0, v3, :cond_8
|
||||
|
||||
goto/16 :goto_1
|
||||
|
||||
:pswitch_0
|
||||
:cond_0
|
||||
iget v0, p0, Landroidx/appcompat/widget/SwitchCompat;->mTouchMode:I
|
||||
|
||||
packed-switch v0, :pswitch_data_1
|
||||
if-eqz v0, :cond_b
|
||||
|
||||
if-eq v0, v1, :cond_6
|
||||
|
||||
if-eq v0, v2, :cond_1
|
||||
|
||||
goto/16 :goto_1
|
||||
|
||||
:pswitch_1
|
||||
:cond_1
|
||||
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
||||
|
||||
move-result p1
|
||||
|
@ -2293,66 +2303,66 @@
|
|||
|
||||
move-result v0
|
||||
|
||||
iget v1, p0, Landroidx/appcompat/widget/SwitchCompat;->mTouchX:F
|
||||
iget v2, p0, Landroidx/appcompat/widget/SwitchCompat;->mTouchX:F
|
||||
|
||||
sub-float v1, p1, v1
|
||||
sub-float v2, p1, v2
|
||||
|
||||
const/high16 v3, 0x3f800000 # 1.0f
|
||||
|
||||
const/4 v4, 0x0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
if-eqz v0, :cond_2
|
||||
|
||||
int-to-float v0, v0
|
||||
|
||||
div-float v0, v1, v0
|
||||
div-float v0, v2, v0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
cmpl-float v0, v1, v4
|
||||
:cond_2
|
||||
cmpl-float v0, v2, v4
|
||||
|
||||
if-lez v0, :cond_1
|
||||
if-lez v0, :cond_3
|
||||
|
||||
const/high16 v0, 0x3f800000 # 1.0f
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
:cond_3
|
||||
const/high16 v0, -0x40800000 # -1.0f
|
||||
|
||||
:goto_0
|
||||
invoke-static {p0}, Landroidx/appcompat/widget/ViewUtils;->isLayoutRtl(Landroid/view/View;)Z
|
||||
|
||||
move-result v1
|
||||
move-result v2
|
||||
|
||||
if-eqz v1, :cond_2
|
||||
if-eqz v2, :cond_4
|
||||
|
||||
neg-float v0, v0
|
||||
|
||||
:cond_2
|
||||
iget v1, p0, Landroidx/appcompat/widget/SwitchCompat;->mThumbPosition:F
|
||||
:cond_4
|
||||
iget v2, p0, Landroidx/appcompat/widget/SwitchCompat;->mThumbPosition:F
|
||||
|
||||
add-float/2addr v1, v0
|
||||
add-float/2addr v2, v0
|
||||
|
||||
invoke-static {v1, v4, v3}, Landroidx/appcompat/widget/SwitchCompat;->constrain(FFF)F
|
||||
invoke-static {v2, v4, v3}, Landroidx/appcompat/widget/SwitchCompat;->constrain(FFF)F
|
||||
|
||||
move-result v0
|
||||
|
||||
iget v1, p0, Landroidx/appcompat/widget/SwitchCompat;->mThumbPosition:F
|
||||
iget v2, p0, Landroidx/appcompat/widget/SwitchCompat;->mThumbPosition:F
|
||||
|
||||
cmpl-float v1, v0, v1
|
||||
cmpl-float v2, v0, v2
|
||||
|
||||
if-eqz v1, :cond_3
|
||||
if-eqz v2, :cond_5
|
||||
|
||||
iput p1, p0, Landroidx/appcompat/widget/SwitchCompat;->mTouchX:F
|
||||
|
||||
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/SwitchCompat;->setThumbPosition(F)V
|
||||
|
||||
:cond_3
|
||||
return v2
|
||||
:cond_5
|
||||
return v1
|
||||
|
||||
:pswitch_2
|
||||
:cond_6
|
||||
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
||||
|
||||
move-result v0
|
||||
|
@ -2375,7 +2385,7 @@
|
|||
|
||||
cmpl-float v4, v4, v5
|
||||
|
||||
if-gtz v4, :cond_4
|
||||
if-gtz v4, :cond_7
|
||||
|
||||
iget v4, p0, Landroidx/appcompat/widget/SwitchCompat;->mTouchY:F
|
||||
|
||||
|
@ -2391,35 +2401,35 @@
|
|||
|
||||
cmpl-float v4, v4, v5
|
||||
|
||||
if-lez v4, :cond_6
|
||||
if-lez v4, :cond_b
|
||||
|
||||
:cond_4
|
||||
iput v1, p0, Landroidx/appcompat/widget/SwitchCompat;->mTouchMode:I
|
||||
:cond_7
|
||||
iput v2, p0, Landroidx/appcompat/widget/SwitchCompat;->mTouchMode:I
|
||||
|
||||
invoke-virtual {p0}, Landroidx/appcompat/widget/SwitchCompat;->getParent()Landroid/view/ViewParent;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-interface {p1, v2}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V
|
||||
invoke-interface {p1, v1}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V
|
||||
|
||||
iput v0, p0, Landroidx/appcompat/widget/SwitchCompat;->mTouchX:F
|
||||
|
||||
iput v3, p0, Landroidx/appcompat/widget/SwitchCompat;->mTouchY:F
|
||||
|
||||
return v2
|
||||
return v1
|
||||
|
||||
:pswitch_3
|
||||
:cond_8
|
||||
iget v0, p0, Landroidx/appcompat/widget/SwitchCompat;->mTouchMode:I
|
||||
|
||||
if-ne v0, v1, :cond_5
|
||||
if-ne v0, v2, :cond_9
|
||||
|
||||
invoke-direct {p0, p1}, Landroidx/appcompat/widget/SwitchCompat;->stopDrag(Landroid/view/MotionEvent;)V
|
||||
|
||||
invoke-super {p0, p1}, Landroid/widget/CompoundButton;->onTouchEvent(Landroid/view/MotionEvent;)Z
|
||||
|
||||
return v2
|
||||
return v1
|
||||
|
||||
:cond_5
|
||||
:cond_9
|
||||
const/4 v0, 0x0
|
||||
|
||||
iput v0, p0, Landroidx/appcompat/widget/SwitchCompat;->mTouchMode:I
|
||||
|
@ -2430,56 +2440,40 @@
|
|||
|
||||
goto :goto_1
|
||||
|
||||
:pswitch_4
|
||||
:cond_a
|
||||
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
||||
|
||||
move-result v1
|
||||
move-result v2
|
||||
|
||||
invoke-virtual {p0}, Landroidx/appcompat/widget/SwitchCompat;->isEnabled()Z
|
||||
|
||||
move-result v3
|
||||
|
||||
if-eqz v3, :cond_6
|
||||
if-eqz v3, :cond_b
|
||||
|
||||
invoke-direct {p0, v0, v1}, Landroidx/appcompat/widget/SwitchCompat;->hitThumb(FF)Z
|
||||
invoke-direct {p0, v0, v2}, Landroidx/appcompat/widget/SwitchCompat;->hitThumb(FF)Z
|
||||
|
||||
move-result v3
|
||||
|
||||
if-eqz v3, :cond_6
|
||||
if-eqz v3, :cond_b
|
||||
|
||||
iput v2, p0, Landroidx/appcompat/widget/SwitchCompat;->mTouchMode:I
|
||||
iput v1, p0, Landroidx/appcompat/widget/SwitchCompat;->mTouchMode:I
|
||||
|
||||
iput v0, p0, Landroidx/appcompat/widget/SwitchCompat;->mTouchX:F
|
||||
|
||||
iput v1, p0, Landroidx/appcompat/widget/SwitchCompat;->mTouchY:F
|
||||
iput v2, p0, Landroidx/appcompat/widget/SwitchCompat;->mTouchY:F
|
||||
|
||||
:cond_6
|
||||
:cond_b
|
||||
:goto_1
|
||||
:pswitch_5
|
||||
invoke-super {p0, p1}, Landroid/widget/CompoundButton;->onTouchEvent(Landroid/view/MotionEvent;)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
|
||||
:pswitch_data_0
|
||||
.packed-switch 0x0
|
||||
:pswitch_4
|
||||
:pswitch_3
|
||||
:pswitch_0
|
||||
:pswitch_3
|
||||
.end packed-switch
|
||||
|
||||
:pswitch_data_1
|
||||
.packed-switch 0x0
|
||||
:pswitch_5
|
||||
:pswitch_2
|
||||
:pswitch_1
|
||||
.end packed-switch
|
||||
.end method
|
||||
|
||||
.method public setChecked(Z)V
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue