2077 lines
46 KiB
Smali
2077 lines
46 KiB
Smali
.class public Lcom/rd/PageIndicatorView;
|
|
.super Landroid/view/View;
|
|
.source "PageIndicatorView.java"
|
|
|
|
# interfaces
|
|
.implements Landroidx/viewpager/widget/ViewPager$OnPageChangeListener;
|
|
.implements Lcom/rd/IndicatorManager$a;
|
|
|
|
|
|
# instance fields
|
|
.field private a:Lcom/rd/IndicatorManager;
|
|
|
|
.field private b:Landroid/database/DataSetObserver;
|
|
|
|
.field private c:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
.field private d:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 2
|
|
invoke-direct {p0, p1}, Lcom/rd/PageIndicatorView;->a(Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
|
|
.line 3
|
|
invoke-direct {p0, p1, p2}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.line 4
|
|
invoke-direct {p0, p2}, Lcom/rd/PageIndicatorView;->a(Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 0
|
|
|
|
.line 5
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.line 6
|
|
invoke-direct {p0, p2}, Lcom/rd/PageIndicatorView;->a(Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
|
|
.locals 0
|
|
.annotation build Landroid/annotation/TargetApi;
|
|
value = 0x15
|
|
.end annotation
|
|
|
|
.line 7
|
|
invoke-direct {p0, p1, p2, p3, p4}, Landroid/view/View;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
|
|
|
|
.line 8
|
|
invoke-direct {p0, p2}, Lcom/rd/PageIndicatorView;->a(Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(I)I
|
|
.locals 1
|
|
|
|
.line 12
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
.line 13
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->c()I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
if-gez p1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-le p1, v0, :cond_1
|
|
|
|
move p1, v0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return p1
|
|
.end method
|
|
|
|
.method private a(Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
.param p1 # Landroid/util/AttributeSet;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 10
|
|
invoke-direct {p0}, Lcom/rd/PageIndicatorView;->g()V
|
|
|
|
.line 11
|
|
invoke-direct {p0, p1}, Lcom/rd/PageIndicatorView;->b(Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/rd/PageIndicatorView;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/rd/PageIndicatorView;->i()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private b(I)V
|
|
.locals 2
|
|
|
|
.line 12
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
.line 13
|
|
invoke-direct {p0}, Lcom/rd/PageIndicatorView;->e()Z
|
|
|
|
move-result v1
|
|
|
|
.line 14
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->c()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 15
|
|
invoke-direct {p0}, Lcom/rd/PageIndicatorView;->d()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
sub-int p1, v0, p1
|
|
|
|
.line 16
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Lcom/rd/PageIndicatorView;->setSelection(I)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method private b(IF)V
|
|
.locals 4
|
|
|
|
.line 17
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
.line 18
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->b()Lcom/rd/animation/type/AnimationType;
|
|
|
|
move-result-object v1
|
|
|
|
.line 19
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->x()Z
|
|
|
|
move-result v2
|
|
|
|
.line 20
|
|
invoke-direct {p0}, Lcom/rd/PageIndicatorView;->e()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
sget-object v2, Lcom/rd/animation/type/AnimationType;->NONE:Lcom/rd/animation/type/AnimationType;
|
|
|
|
if-eq v1, v2, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-nez v1, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 21
|
|
:cond_1
|
|
invoke-direct {p0}, Lcom/rd/PageIndicatorView;->d()Z
|
|
|
|
move-result v1
|
|
|
|
invoke-static {v0, p1, p2, v1}, Lcom/rd/e/CoordinatesUtils;->a(Lcom/rd/draw/data/Indicator;IFZ)Landroid/util/Pair;
|
|
|
|
move-result-object p1
|
|
|
|
.line 22
|
|
iget-object p2, p1, Landroid/util/Pair;->first:Ljava/lang/Object;
|
|
|
|
check-cast p2, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result p2
|
|
|
|
.line 23
|
|
iget-object p1, p1, Landroid/util/Pair;->second:Ljava/lang/Object;
|
|
|
|
check-cast p1, Ljava/lang/Float;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Float;->floatValue()F
|
|
|
|
move-result p1
|
|
|
|
.line 24
|
|
invoke-virtual {p0, p2, p1}, Lcom/rd/PageIndicatorView;->a(IF)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private b(Landroid/util/AttributeSet;)V
|
|
.locals 2
|
|
.param p1 # Landroid/util/AttributeSet;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 4
|
|
new-instance v0, Lcom/rd/IndicatorManager;
|
|
|
|
invoke-direct {v0, p0}, Lcom/rd/IndicatorManager;-><init>(Lcom/rd/IndicatorManager$a;)V
|
|
|
|
iput-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
.line 5
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->b()Lcom/rd/c/DrawManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1, p1}, Lcom/rd/c/DrawManager;->a(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.line 6
|
|
iget-object p1, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {p1}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object p1
|
|
|
|
.line 7
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingLeft()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1, v0}, Lcom/rd/draw/data/Indicator;->f(I)V
|
|
|
|
.line 8
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingTop()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1, v0}, Lcom/rd/draw/data/Indicator;->h(I)V
|
|
|
|
.line 9
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingRight()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1, v0}, Lcom/rd/draw/data/Indicator;->g(I)V
|
|
|
|
.line 10
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingBottom()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1, v0}, Lcom/rd/draw/data/Indicator;->e(I)V
|
|
|
|
.line 11
|
|
invoke-virtual {p1}, Lcom/rd/draw/data/Indicator;->x()Z
|
|
|
|
move-result p1
|
|
|
|
iput-boolean p1, p0, Lcom/rd/PageIndicatorView;->d:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private c()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
instance-of v0, v0, Landroid/app/Activity;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/app/Activity;
|
|
|
|
.line 3
|
|
iget-object v1, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v1}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lcom/rd/draw/data/Indicator;->t()I
|
|
|
|
move-result v1
|
|
|
|
.line 4
|
|
invoke-virtual {v0, v1}, Landroid/app/Activity;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 5
|
|
instance-of v1, v0, Landroidx/viewpager/widget/ViewPager;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 6
|
|
check-cast v0, Landroidx/viewpager/widget/ViewPager;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/rd/PageIndicatorView;->setViewPager(Landroidx/viewpager/widget/ViewPager;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private d()Z
|
|
.locals 4
|
|
|
|
.line 1
|
|
sget-object v0, Lcom/rd/PageIndicatorView$b;->a:[I
|
|
|
|
iget-object v1, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v1}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lcom/rd/draw/data/Indicator;->m()Lcom/rd/draw/data/RtlMode;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v1
|
|
|
|
aget v0, v0, v1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq v0, v1, :cond_3
|
|
|
|
const/4 v2, 0x2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eq v0, v2, :cond_2
|
|
|
|
const/4 v2, 0x3
|
|
|
|
if-eq v0, v2, :cond_0
|
|
|
|
return v3
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v0, v0, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;
|
|
|
|
invoke-static {v0}, Landroidx/core/text/TextUtilsCompat;->getLayoutDirectionFromLocale(Ljava/util/Locale;)I
|
|
|
|
move-result v0
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
return v1
|
|
|
|
:cond_2
|
|
return v3
|
|
|
|
:cond_3
|
|
return v1
|
|
.end method
|
|
|
|
.method private e()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v0, 0x1
|
|
|
|
:goto_1
|
|
return v0
|
|
.end method
|
|
|
|
.method private f()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->b:Landroid/database/DataSetObserver;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->c:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Landroidx/viewpager/widget/ViewPager;->getAdapter()Landroidx/viewpager/widget/PagerAdapter;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 2
|
|
:cond_0
|
|
new-instance v0, Lcom/rd/PageIndicatorView$a;
|
|
|
|
invoke-direct {v0, p0}, Lcom/rd/PageIndicatorView$a;-><init>(Lcom/rd/PageIndicatorView;)V
|
|
|
|
iput-object v0, p0, Lcom/rd/PageIndicatorView;->b:Landroid/database/DataSetObserver;
|
|
|
|
.line 3
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->c:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
invoke-virtual {v0}, Landroidx/viewpager/widget/ViewPager;->getAdapter()Landroidx/viewpager/widget/PagerAdapter;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/rd/PageIndicatorView;->b:Landroid/database/DataSetObserver;
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/viewpager/widget/PagerAdapter;->registerDataSetObserver(Landroid/database/DataSetObserver;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 4
|
|
invoke-virtual {v0}, Ljava/lang/IllegalStateException;->printStackTrace()V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private g()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getId()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
.line 2
|
|
invoke-static {}, Lcom/rd/e/IdUtils;->b()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setId(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private getViewPagerCount()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->c:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroidx/viewpager/widget/ViewPager;->getAdapter()Landroidx/viewpager/widget/PagerAdapter;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->c:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
invoke-virtual {v0}, Landroidx/viewpager/widget/ViewPager;->getAdapter()Landroidx/viewpager/widget/PagerAdapter;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroidx/viewpager/widget/PagerAdapter;->getCount()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->c()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method private h()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->b:Landroid/database/DataSetObserver;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->c:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Landroidx/viewpager/widget/ViewPager;->getAdapter()Landroidx/viewpager/widget/PagerAdapter;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 2
|
|
:cond_0
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->c:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
invoke-virtual {v0}, Landroidx/viewpager/widget/ViewPager;->getAdapter()Landroidx/viewpager/widget/PagerAdapter;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/rd/PageIndicatorView;->b:Landroid/database/DataSetObserver;
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/viewpager/widget/PagerAdapter;->unregisterDataSetObserver(Landroid/database/DataSetObserver;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 3
|
|
iput-object v0, p0, Lcom/rd/PageIndicatorView;->b:Landroid/database/DataSetObserver;
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 4
|
|
invoke-virtual {v0}, Ljava/lang/IllegalStateException;->printStackTrace()V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private i()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->c:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Landroidx/viewpager/widget/ViewPager;->getAdapter()Landroidx/viewpager/widget/PagerAdapter;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->c:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
invoke-virtual {v0}, Landroidx/viewpager/widget/ViewPager;->getAdapter()Landroidx/viewpager/widget/PagerAdapter;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroidx/viewpager/widget/PagerAdapter;->getCount()I
|
|
|
|
move-result v0
|
|
|
|
.line 3
|
|
iget-object v1, p0, Lcom/rd/PageIndicatorView;->c:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
invoke-virtual {v1}, Landroidx/viewpager/widget/ViewPager;->getCurrentItem()I
|
|
|
|
move-result v1
|
|
|
|
.line 4
|
|
iget-object v2, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v2}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, v1}, Lcom/rd/draw/data/Indicator;->k(I)V
|
|
|
|
.line 5
|
|
iget-object v2, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v2}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, v1}, Lcom/rd/draw/data/Indicator;->l(I)V
|
|
|
|
.line 6
|
|
iget-object v2, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v2}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, v1}, Lcom/rd/draw/data/Indicator;->c(I)V
|
|
|
|
.line 7
|
|
iget-object v1, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v1}, Lcom/rd/IndicatorManager;->a()Lcom/rd/b/AnimationManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lcom/rd/b/AnimationManager;->b()V
|
|
|
|
.line 8
|
|
invoke-virtual {p0, v0}, Lcom/rd/PageIndicatorView;->setCount(I)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private j()V
|
|
.locals 4
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->v()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->c()I
|
|
|
|
move-result v0
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
if-le v0, v2, :cond_1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 4
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v3, 0x4
|
|
|
|
if-eq v1, v3, :cond_2
|
|
|
|
if-gt v0, v2, :cond_2
|
|
|
|
.line 5
|
|
invoke-virtual {p0, v3}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()V
|
|
.locals 0
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroid/view/View;->invalidate()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(IF)V
|
|
.locals 4
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
.line 4
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->x()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 5
|
|
:cond_0
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->c()I
|
|
|
|
move-result v1
|
|
|
|
if-lez v1, :cond_2
|
|
|
|
if-gez p1, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
if-le p1, v1, :cond_3
|
|
|
|
move p1, v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
:goto_0
|
|
const/4 p1, 0x0
|
|
|
|
:cond_3
|
|
:goto_1
|
|
const/4 v1, 0x0
|
|
|
|
const/high16 v2, 0x3f800000 # 1.0f
|
|
|
|
cmpg-float v3, p2, v1
|
|
|
|
if-gez v3, :cond_4
|
|
|
|
const/4 p2, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
cmpl-float v1, p2, v2
|
|
|
|
if-lez v1, :cond_5
|
|
|
|
const/high16 p2, 0x3f800000 # 1.0f
|
|
|
|
:cond_5
|
|
:goto_2
|
|
cmpl-float v1, p2, v2
|
|
|
|
if-nez v1, :cond_6
|
|
|
|
.line 6
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->p()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/rd/draw/data/Indicator;->c(I)V
|
|
|
|
.line 7
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->k(I)V
|
|
|
|
.line 8
|
|
:cond_6
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->l(I)V
|
|
|
|
.line 9
|
|
iget-object p1, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {p1}, Lcom/rd/IndicatorManager;->a()Lcom/rd/b/AnimationManager;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, p2}, Lcom/rd/b/AnimationManager;->a(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->c:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {v0, p0}, Landroidx/viewpager/widget/ViewPager;->removeOnPageChangeListener(Landroidx/viewpager/widget/ViewPager$OnPageChangeListener;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 3
|
|
iput-object v0, p0, Lcom/rd/PageIndicatorView;->c:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public getAnimationDuration()J
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->a()J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public getCount()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->c()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getPadding()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->g()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getRadius()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->l()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getScaleFactor()F
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->n()F
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getSelectedColor()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->o()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getSelection()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->p()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getStrokeWidth()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->r()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getUnselectedColor()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->s()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method protected onAttachedToWindow()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/view/View;->onAttachedToWindow()V
|
|
|
|
.line 2
|
|
invoke-direct {p0}, Lcom/rd/PageIndicatorView;->c()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onDetachedFromWindow()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lcom/rd/PageIndicatorView;->h()V
|
|
|
|
.line 2
|
|
invoke-super {p0}, Landroid/view/View;->onDetachedFromWindow()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onDraw(Landroid/graphics/Canvas;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->b()Lcom/rd/c/DrawManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/rd/c/DrawManager;->a(Landroid/graphics/Canvas;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onMeasure(II)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->b()Lcom/rd/c/DrawManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/rd/c/DrawManager;->a(II)Landroid/util/Pair;
|
|
|
|
move-result-object p1
|
|
|
|
.line 2
|
|
iget-object p2, p1, Landroid/util/Pair;->first:Ljava/lang/Object;
|
|
|
|
check-cast p2, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result p2
|
|
|
|
iget-object p1, p1, Landroid/util/Pair;->second:Ljava/lang/Object;
|
|
|
|
check-cast p1, Ljava/lang/Integer;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p2, p1}, Landroid/view/View;->setMeasuredDimension(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onPageScrollStateChanged(I)V
|
|
.locals 1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 1
|
|
iget-object p1, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {p1}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object p1
|
|
|
|
iget-boolean v0, p0, Lcom/rd/PageIndicatorView;->d:Z
|
|
|
|
invoke-virtual {p1, v0}, Lcom/rd/draw/data/Indicator;->c(Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onPageScrolled(IFI)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1, p2}, Lcom/rd/PageIndicatorView;->b(IF)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onPageSelected(I)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lcom/rd/PageIndicatorView;->b(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
instance-of v0, p1, Lcom/rd/draw/data/PositionSavedState;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
.line 3
|
|
check-cast p1, Lcom/rd/draw/data/PositionSavedState;
|
|
|
|
.line 4
|
|
invoke-virtual {p1}, Lcom/rd/draw/data/PositionSavedState;->G()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/rd/draw/data/Indicator;->k(I)V
|
|
|
|
.line 5
|
|
invoke-virtual {p1}, Lcom/rd/draw/data/PositionSavedState;->H()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/rd/draw/data/Indicator;->l(I)V
|
|
|
|
.line 6
|
|
invoke-virtual {p1}, Lcom/rd/draw/data/PositionSavedState;->F()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/rd/draw/data/Indicator;->c(I)V
|
|
|
|
.line 7
|
|
invoke-virtual {p1}, Landroid/view/View$BaseSavedState;->getSuperState()Landroid/os/Parcelable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-super {p0, p1}, Landroid/view/View;->onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_0
|
|
invoke-super {p0, p1}, Landroid/view/View;->onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onSaveInstanceState()Landroid/os/Parcelable;
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
new-instance v1, Lcom/rd/draw/data/PositionSavedState;
|
|
|
|
invoke-super {p0}, Landroid/view/View;->onSaveInstanceState()Landroid/os/Parcelable;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v1, v2}, Lcom/rd/draw/data/PositionSavedState;-><init>(Landroid/os/Parcelable;)V
|
|
|
|
.line 3
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->p()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v1, v2}, Lcom/rd/draw/data/PositionSavedState;->c(I)V
|
|
|
|
.line 4
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->q()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v1, v2}, Lcom/rd/draw/data/PositionSavedState;->d(I)V
|
|
|
|
.line 5
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->e()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {v1, v0}, Lcom/rd/draw/data/PositionSavedState;->b(I)V
|
|
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 1
|
|
.annotation build Landroid/annotation/SuppressLint;
|
|
value = {
|
|
"ClickableViewAccessibility"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->b()Lcom/rd/c/DrawManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/rd/c/DrawManager;->a(Landroid/view/MotionEvent;)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public setAnimationDuration(J)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/rd/draw/data/Indicator;->a(J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAnimationType(Lcom/rd/animation/type/AnimationType;)V
|
|
.locals 2
|
|
.param p1 # Lcom/rd/animation/type/AnimationType;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Lcom/rd/IndicatorManager;->a(Lcom/rd/b/c/Value;)V
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->a(Lcom/rd/animation/type/AnimationType;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {p1}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v0, Lcom/rd/animation/type/AnimationType;->NONE:Lcom/rd/animation/type/AnimationType;
|
|
|
|
invoke-virtual {p1, v0}, Lcom/rd/draw/data/Indicator;->a(Lcom/rd/animation/type/AnimationType;)V
|
|
|
|
.line 4
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/view/View;->invalidate()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAutoVisibility(Z)V
|
|
.locals 1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->a(Z)V
|
|
|
|
.line 3
|
|
invoke-direct {p0}, Lcom/rd/PageIndicatorView;->j()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setClickListener(Lcom/rd/c/b/DrawController$b;)V
|
|
.locals 1
|
|
.param p1 # Lcom/rd/c/b/DrawController$b;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->b()Lcom/rd/c/DrawManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/rd/c/DrawManager;->a(Lcom/rd/c/b/DrawController$b;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCount(I)V
|
|
.locals 1
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->c()I
|
|
|
|
move-result v0
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->a(I)V
|
|
|
|
.line 3
|
|
invoke-direct {p0}, Lcom/rd/PageIndicatorView;->j()V
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/view/View;->requestLayout()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setDynamicCount(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->b(Z)V
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 2
|
|
invoke-direct {p0}, Lcom/rd/PageIndicatorView;->f()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-direct {p0}, Lcom/rd/PageIndicatorView;->h()V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setInteractiveAnimation(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->c(Z)V
|
|
|
|
.line 2
|
|
iput-boolean p1, p0, Lcom/rd/PageIndicatorView;->d:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOrientation(Lcom/rd/draw/data/Orientation;)V
|
|
.locals 1
|
|
.param p1 # Lcom/rd/draw/data/Orientation;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->a(Lcom/rd/draw/data/Orientation;)V
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroid/view/View;->requestLayout()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setPadding(F)V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
cmpg-float v1, p1, v0
|
|
|
|
if-gez v1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 4
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
float-to-int p1, p1
|
|
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->d(I)V
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Landroid/view/View;->invalidate()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setPadding(I)V
|
|
.locals 1
|
|
|
|
if-gez p1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 1
|
|
:cond_0
|
|
invoke-static {p1}, Lcom/rd/e/DensityUtils;->a(I)I
|
|
|
|
move-result p1
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->d(I)V
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroid/view/View;->invalidate()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setRadius(F)V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
cmpg-float v1, p1, v0
|
|
|
|
if-gez v1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 4
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
float-to-int p1, p1
|
|
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->i(I)V
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Landroid/view/View;->invalidate()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setRadius(I)V
|
|
.locals 1
|
|
|
|
if-gez p1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 1
|
|
:cond_0
|
|
invoke-static {p1}, Lcom/rd/e/DensityUtils;->a(I)I
|
|
|
|
move-result p1
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->i(I)V
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroid/view/View;->invalidate()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setRtlMode(Lcom/rd/draw/data/RtlMode;)V
|
|
.locals 2
|
|
.param p1 # Lcom/rd/draw/data/RtlMode;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 2
|
|
sget-object p1, Lcom/rd/draw/data/RtlMode;->Off:Lcom/rd/draw/data/RtlMode;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->a(Lcom/rd/draw/data/RtlMode;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->a(Lcom/rd/draw/data/RtlMode;)V
|
|
|
|
.line 4
|
|
:goto_0
|
|
iget-object p1, p0, Lcom/rd/PageIndicatorView;->c:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
return-void
|
|
|
|
.line 5
|
|
:cond_1
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->p()I
|
|
|
|
move-result p1
|
|
|
|
.line 6
|
|
invoke-direct {p0}, Lcom/rd/PageIndicatorView;->d()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 7
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->c()I
|
|
|
|
move-result v1
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
sub-int p1, v1, p1
|
|
|
|
goto :goto_1
|
|
|
|
.line 8
|
|
:cond_2
|
|
iget-object v1, p0, Lcom/rd/PageIndicatorView;->c:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 9
|
|
invoke-virtual {v1}, Landroidx/viewpager/widget/ViewPager;->getCurrentItem()I
|
|
|
|
move-result p1
|
|
|
|
.line 10
|
|
:cond_3
|
|
:goto_1
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->c(I)V
|
|
|
|
.line 11
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->l(I)V
|
|
|
|
.line 12
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->k(I)V
|
|
|
|
.line 13
|
|
invoke-virtual {p0}, Landroid/view/View;->invalidate()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setScaleFactor(F)V
|
|
.locals 3
|
|
|
|
const v0, 0x3e99999a # 0.3f
|
|
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
cmpl-float v2, p1, v1
|
|
|
|
if-lez v2, :cond_0
|
|
|
|
const/high16 p1, 0x3f800000 # 1.0f
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
cmpg-float v1, p1, v0
|
|
|
|
if-gez v1, :cond_1
|
|
|
|
const p1, 0x3e99999a # 0.3f
|
|
|
|
.line 1
|
|
:cond_1
|
|
:goto_0
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->a(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSelected(I)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->b()Lcom/rd/animation/type/AnimationType;
|
|
|
|
move-result-object v1
|
|
|
|
.line 3
|
|
sget-object v2, Lcom/rd/animation/type/AnimationType;->NONE:Lcom/rd/animation/type/AnimationType;
|
|
|
|
invoke-virtual {v0, v2}, Lcom/rd/draw/data/Indicator;->a(Lcom/rd/animation/type/AnimationType;)V
|
|
|
|
.line 4
|
|
invoke-virtual {p0, p1}, Lcom/rd/PageIndicatorView;->setSelection(I)V
|
|
|
|
.line 5
|
|
invoke-virtual {v0, v1}, Lcom/rd/draw/data/Indicator;->a(Lcom/rd/animation/type/AnimationType;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSelectedColor(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->j(I)V
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroid/view/View;->invalidate()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSelection(I)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
invoke-direct {p0, p1}, Lcom/rd/PageIndicatorView;->a(I)I
|
|
|
|
move-result p1
|
|
|
|
.line 3
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->p()I
|
|
|
|
move-result v1
|
|
|
|
if-eq p1, v1, :cond_1
|
|
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->q()I
|
|
|
|
move-result v1
|
|
|
|
if-ne p1, v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
.line 4
|
|
invoke-virtual {v0, v1}, Lcom/rd/draw/data/Indicator;->c(Z)V
|
|
|
|
.line 5
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->p()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/rd/draw/data/Indicator;->c(I)V
|
|
|
|
.line 6
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->l(I)V
|
|
|
|
.line 7
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->k(I)V
|
|
|
|
.line 8
|
|
iget-object p1, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {p1}, Lcom/rd/IndicatorManager;->a()Lcom/rd/b/AnimationManager;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/rd/b/AnimationManager;->a()V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setStrokeWidth(F)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->l()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
cmpg-float v2, p1, v1
|
|
|
|
if-gez v2, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
int-to-float v0, v0
|
|
|
|
cmpl-float v1, p1, v0
|
|
|
|
if-lez v1, :cond_1
|
|
|
|
move p1, v0
|
|
|
|
.line 2
|
|
:cond_1
|
|
:goto_0
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
float-to-int p1, p1
|
|
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->m(I)V
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroid/view/View;->invalidate()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setStrokeWidth(I)V
|
|
.locals 1
|
|
|
|
.line 4
|
|
invoke-static {p1}, Lcom/rd/e/DensityUtils;->a(I)I
|
|
|
|
move-result p1
|
|
|
|
.line 5
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/rd/draw/data/Indicator;->l()I
|
|
|
|
move-result v0
|
|
|
|
if-gez p1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-le p1, v0, :cond_1
|
|
|
|
move p1, v0
|
|
|
|
.line 6
|
|
:cond_1
|
|
:goto_0
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->m(I)V
|
|
|
|
.line 7
|
|
invoke-virtual {p0}, Landroid/view/View;->invalidate()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setUnselectedColor(I)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v0}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/rd/draw/data/Indicator;->n(I)V
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroid/view/View;->invalidate()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setViewPager(Landroidx/viewpager/widget/ViewPager;)V
|
|
.locals 2
|
|
.param p1 # Landroidx/viewpager/widget/ViewPager;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/rd/PageIndicatorView;->b()V
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
iput-object p1, p0, Lcom/rd/PageIndicatorView;->c:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
.line 3
|
|
iget-object p1, p0, Lcom/rd/PageIndicatorView;->c:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
invoke-virtual {p1, p0}, Landroidx/viewpager/widget/ViewPager;->addOnPageChangeListener(Landroidx/viewpager/widget/ViewPager$OnPageChangeListener;)V
|
|
|
|
.line 4
|
|
iget-object p1, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {p1}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/rd/PageIndicatorView;->c:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
invoke-virtual {v0}, Landroid/view/ViewGroup;->getId()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1, v0}, Lcom/rd/draw/data/Indicator;->o(I)V
|
|
|
|
.line 5
|
|
iget-object p1, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {p1}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/rd/draw/data/Indicator;->w()Z
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/rd/PageIndicatorView;->setDynamicCount(Z)V
|
|
|
|
.line 6
|
|
invoke-direct {p0}, Lcom/rd/PageIndicatorView;->getViewPagerCount()I
|
|
|
|
move-result p1
|
|
|
|
.line 7
|
|
invoke-direct {p0}, Lcom/rd/PageIndicatorView;->d()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
add-int/lit8 v0, p1, -0x1
|
|
|
|
.line 8
|
|
iget-object v1, p0, Lcom/rd/PageIndicatorView;->c:Landroidx/viewpager/widget/ViewPager;
|
|
|
|
invoke-virtual {v1}, Landroidx/viewpager/widget/ViewPager;->getCurrentItem()I
|
|
|
|
move-result v1
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 9
|
|
iget-object v1, p0, Lcom/rd/PageIndicatorView;->a:Lcom/rd/IndicatorManager;
|
|
|
|
invoke-virtual {v1}, Lcom/rd/IndicatorManager;->c()Lcom/rd/draw/data/Indicator;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v0}, Lcom/rd/draw/data/Indicator;->k(I)V
|
|
|
|
.line 10
|
|
:cond_1
|
|
invoke-virtual {p0, p1}, Lcom/rd/PageIndicatorView;->setCount(I)V
|
|
|
|
return-void
|
|
.end method
|