apkfuckery/com.discord/smali/androidx/preference/SeekBarPreference$2.smali

105 lines
2.2 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public Landroidx/preference/SeekBarPreference$2;
.super Ljava/lang/Object;
.source "SeekBarPreference.java"
# interfaces
.implements Landroid/view/View$OnKeyListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/preference/SeekBarPreference;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Landroidx/preference/SeekBarPreference;
# direct methods
.method public constructor <init>(Landroidx/preference/SeekBarPreference;)V
.locals 0
iput-object p1, p0, Landroidx/preference/SeekBarPreference$2;->this$0:Landroidx/preference/SeekBarPreference;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onKey(Landroid/view/View;ILandroid/view/KeyEvent;)Z
.locals 1
invoke-virtual {p3}, Landroid/view/KeyEvent;->getAction()I
move-result p1
const/4 v0, 0x0
if-eqz p1, :cond_0
return v0
:cond_0
iget-object p1, p0, Landroidx/preference/SeekBarPreference$2;->this$0:Landroidx/preference/SeekBarPreference;
iget-boolean p1, p1, Landroidx/preference/SeekBarPreference;->mAdjustable:Z
if-nez p1, :cond_2
const/16 p1, 0x15
if-eq p2, p1, :cond_1
const/16 p1, 0x16
if-ne p2, p1, :cond_2
:cond_1
return v0
:cond_2
const/16 p1, 0x17
if-eq p2, p1, :cond_5
const/16 p1, 0x42
if-ne p2, p1, :cond_3
goto :goto_0
:cond_3
iget-object p1, p0, Landroidx/preference/SeekBarPreference$2;->this$0:Landroidx/preference/SeekBarPreference;
iget-object p1, p1, Landroidx/preference/SeekBarPreference;->mSeekBar:Landroid/widget/SeekBar;
if-nez p1, :cond_4
const-string p1, "SeekBarPreference"
const-string p2, "SeekBar view is null and hence cannot be adjusted."
invoke-static {p1, p2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
return v0
:cond_4
invoke-virtual {p1, p2, p3}, Landroid/widget/SeekBar;->onKeyDown(ILandroid/view/KeyEvent;)Z
move-result p1
return p1
:cond_5
:goto_0
return v0
.end method