ReactProgressBarViewManager.smali
.class public Lcom/facebook/react/views/progressbar/ReactProgressBarViewManager;
.super Lcom/facebook/react/uimanager/BaseViewManager;
.source "SourceFile"
# interfaces
.implements Lcom/facebook/react/viewmanagers/AndroidProgressBarManagerInterface;
# annotations
.annotation runtime Lcom/facebook/react/module/annotations/ReactModule;
name = "AndroidProgressBar"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/facebook/react/uimanager/BaseViewManager<",
"Lcom/facebook/react/views/progressbar/ProgressBarContainerView;",
"Lcom/facebook/react/views/progressbar/ProgressBarShadowNode;",
">;",
"Lcom/facebook/react/viewmanagers/AndroidProgressBarManagerInterface<",
"Lcom/facebook/react/views/progressbar/ProgressBarContainerView;",
">;"
}
.end annotation
# static fields
.field public static final DEFAULT_STYLE:Ljava/lang/String; = "Normal"
.field public static final PROP_ANIMATING:Ljava/lang/String; = "animating"
.field public static final PROP_INDETERMINATE:Ljava/lang/String; = "indeterminate"
.field public static final PROP_PROGRESS:Ljava/lang/String; = "progress"
.field public static final PROP_STYLE:Ljava/lang/String; = "styleAttr"
.field public static final REACT_CLASS:Ljava/lang/String; = "AndroidProgressBar"
.field private static sProgressBarCtorLock:Ljava/lang/Object;
# instance fields
.field private final mDelegate:Lcom/facebook/react/uimanager/ViewManagerDelegate;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/facebook/react/uimanager/ViewManagerDelegate<",
"Lcom/facebook/react/views/progressbar/ProgressBarContainerView;",
">;"
}
.end annotation
.end field
# direct methods
.method public static constructor <clinit>()V
.registers 1
new-instance v0, Ljava/lang/Object;
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
sput-object v0, Lcom/facebook/react/views/progressbar/ReactProgressBarViewManager;->sProgressBarCtorLock:Ljava/lang/Object;
return-void
.end method
.method public constructor <init>()V
.registers 2
.line 1
invoke-direct {p0}, Lcom/facebook/react/uimanager/BaseViewManager;-><init>()V
.line 2
new-instance v0, Lcom/facebook/react/viewmanagers/AndroidProgressBarManagerDelegate;
invoke-direct {v0, p0}, Lcom/facebook/react/viewmanagers/AndroidProgressBarManagerDelegate;-><init>(Lcom/facebook/react/uimanager/BaseViewManagerInterface;)V
iput-object v0, p0, Lcom/facebook/react/views/progressbar/ReactProgressBarViewManager;->mDelegate:Lcom/facebook/react/uimanager/ViewManagerDelegate;
return-void
.end method
.method public static createProgressBar(Landroid/content/Context;I)Landroid/widget/ProgressBar;
.registers 5
.line 1
sget-object v0, Lcom/facebook/react/views/progressbar/ReactProgressBarViewManager;->sProgressBarCtorLock:Ljava/lang/Object;
monitor-enter v0
.line 2
:try_start_3
new-instance v1, Landroid/widget/ProgressBar;
const/4 v2, 0x0
invoke-direct {v1, p0, v2, p1}, Landroid/widget/ProgressBar;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
monitor-exit v0
return-object v1
:catchall_b
move-exception p0
.line 3
monitor-exit v0
:try_end_d
.catchall {:try_start_3 .. :try_end_d} :catchall_b
throw p0
.end method
.method public static getStyleFromString(Ljava/lang/String;)I
.registers 3
if-eqz p0, :cond_62
const-string v0, "Horizontal"
.line 1
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_e
const p0, 0x1010078
return p0
:cond_e
const-string v0, "Small"
.line 2
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1a
const p0, 0x1010079
return p0
:cond_1a
const-string v0, "Large"
.line 3
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_26
const p0, 0x101007a
return p0
:cond_26
const-string v0, "Inverse"
.line 4
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_32
const p0, 0x1010287
return p0
:cond_32
const-string v0, "SmallInverse"
.line 5
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_3e
const p0, 0x1010288
return p0
:cond_3e
const-string v0, "LargeInverse"
.line 6
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_4a
const p0, 0x1010289
return p0
:cond_4a
const-string v0, "Normal"
.line 7
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_56
const p0, 0x1010077
return p0
.line 8
:cond_56
new-instance v0, Lcom/facebook/react/bridge/JSApplicationIllegalArgumentException;
const-string v1, "Unknown ProgressBar style: "
.line 9
invoke-static {v1, p0}, Landroidx/appcompat/e;->g(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
.line 10
invoke-direct {v0, p0}, Lcom/facebook/react/bridge/JSApplicationIllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.line 11
:cond_62
new-instance p0, Lcom/facebook/react/bridge/JSApplicationIllegalArgumentException;
const-string v0, "ProgressBar needs to have a style, null received"
invoke-direct {p0, v0}, Lcom/facebook/react/bridge/JSApplicationIllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
# virtual methods
.method public bridge synthetic createShadowNodeInstance()Lcom/facebook/react/uimanager/ReactShadowNode;
.registers 2
.line 1
invoke-virtual {p0}, Lcom/facebook/react/views/progressbar/ReactProgressBarViewManager;->createShadowNodeInstance()Lcom/facebook/react/views/progressbar/ProgressBarShadowNode;
move-result-object v0
return-object v0
.end method
.method public createShadowNodeInstance()Lcom/facebook/react/views/progressbar/ProgressBarShadowNode;
.registers 2
.line 2
new-instance v0, Lcom/facebook/react/views/progressbar/ProgressBarShadowNode;
invoke-direct {v0}, Lcom/facebook/react/views/progressbar/ProgressBarShadowNode;-><init>()V
return-object v0
.end method
.method public bridge synthetic createViewInstance(Lcom/facebook/react/uimanager/ThemedReactContext;)Landroid/view/View;
.registers 2
.line 1
invoke-virtual {p0, p1}, Lcom/facebook/react/views/progressbar/ReactProgressBarViewManager;->createViewInstance(Lcom/facebook/react/uimanager/ThemedReactContext;)Lcom/facebook/react/views/progressbar/ProgressBarContainerView;
move-result-object p1
return-object p1
.end method
.method public createViewInstance(Lcom/facebook/react/uimanager/ThemedReactContext;)Lcom/facebook/react/views/progressbar/ProgressBarContainerView;
.registers 3
.line 2
new-instance v0, Lcom/facebook/react/views/progressbar/ProgressBarContainerView;
invoke-direct {v0, p1}, Lcom/facebook/react/views/progressbar/ProgressBarContainerView;-><init>(Landroid/content/Context;)V
return-object v0
.end method
.method public getDelegate()Lcom/facebook/react/uimanager/ViewManagerDelegate;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/facebook/react/uimanager/ViewManagerDelegate<",
"Lcom/facebook/react/views/progressbar/ProgressBarContainerView;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/facebook/react/views/progressbar/ReactProgressBarViewManager;->mDelegate:Lcom/facebook/react/uimanager/ViewManagerDelegate;
return-object v0
.end method
.method public getName()Ljava/lang/String;
.registers 2
const-string v0, "AndroidProgressBar"
return-object v0
.end method
.method public getShadowNodeClass()Ljava/lang/Class;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Class<",
"Lcom/facebook/react/views/progressbar/ProgressBarShadowNode;",
">;"
}
.end annotation
const-class v0, Lcom/facebook/react/views/progressbar/ProgressBarShadowNode;
return-object v0
.end method
.method public bridge synthetic onAfterUpdateTransaction(Landroid/view/View;)V
.registers 2
.line 1
check-cast p1, Lcom/facebook/react/views/progressbar/ProgressBarContainerView;
invoke-virtual {p0, p1}, Lcom/facebook/react/views/progressbar/ReactProgressBarViewManager;->onAfterUpdateTransaction(Lcom/facebook/react/views/progressbar/ProgressBarContainerView;)V
return-void
.end method
.method public onAfterUpdateTransaction(Lcom/facebook/react/views/progressbar/ProgressBarContainerView;)V
.registers 2
.line 2
invoke-virtual {p1}, Lcom/facebook/react/views/progressbar/ProgressBarContainerView;->apply()V
return-void
.end method
.method public bridge synthetic setAnimating(Landroid/view/View;Z)V
.registers 3
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "animating"
.end annotation
.line 1
check-cast p1, Lcom/facebook/react/views/progressbar/ProgressBarContainerView;
invoke-virtual {p0, p1, p2}, Lcom/facebook/react/views/progressbar/ReactProgressBarViewManager;->setAnimating(Lcom/facebook/react/views/progressbar/ProgressBarContainerView;Z)V
return-void
.end method
.method public setAnimating(Lcom/facebook/react/views/progressbar/ProgressBarContainerView;Z)V
.registers 3
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "animating"
.end annotation
.line 2
invoke-virtual {p1, p2}, Lcom/facebook/react/views/progressbar/ProgressBarContainerView;->setAnimating(Z)V
return-void
.end method
.method public bridge synthetic setColor(Landroid/view/View;Ljava/lang/Integer;)V
.registers 3
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
customType = "Color"
name = "color"
.end annotation
.line 1
check-cast p1, Lcom/facebook/react/views/progressbar/ProgressBarContainerView;
invoke-virtual {p0, p1, p2}, Lcom/facebook/react/views/progressbar/ReactProgressBarViewManager;->setColor(Lcom/facebook/react/views/progressbar/ProgressBarContainerView;Ljava/lang/Integer;)V
return-void
.end method
.method public setColor(Lcom/facebook/react/views/progressbar/ProgressBarContainerView;Ljava/lang/Integer;)V
.registers 3
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
customType = "Color"
name = "color"
.end annotation
.line 2
invoke-virtual {p1, p2}, Lcom/facebook/react/views/progressbar/ProgressBarContainerView;->setColor(Ljava/lang/Integer;)V
return-void
.end method
.method public bridge synthetic setIndeterminate(Landroid/view/View;Z)V
.registers 3
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "indeterminate"
.end annotation
.line 1
check-cast p1, Lcom/facebook/react/views/progressbar/ProgressBarContainerView;
invoke-virtual {p0, p1, p2}, Lcom/facebook/react/views/progressbar/ReactProgressBarViewManager;->setIndeterminate(Lcom/facebook/react/views/progressbar/ProgressBarContainerView;Z)V
return-void
.end method
.method public setIndeterminate(Lcom/facebook/react/views/progressbar/ProgressBarContainerView;Z)V
.registers 3
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "indeterminate"
.end annotation
.line 2
invoke-virtual {p1, p2}, Lcom/facebook/react/views/progressbar/ProgressBarContainerView;->setIndeterminate(Z)V
return-void
.end method
.method public bridge synthetic setProgress(Landroid/view/View;D)V
.registers 4
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "progress"
.end annotation
.line 1
check-cast p1, Lcom/facebook/react/views/progressbar/ProgressBarContainerView;
invoke-virtual {p0, p1, p2, p3}, Lcom/facebook/react/views/progressbar/ReactProgressBarViewManager;->setProgress(Lcom/facebook/react/views/progressbar/ProgressBarContainerView;D)V
return-void
.end method
.method public setProgress(Lcom/facebook/react/views/progressbar/ProgressBarContainerView;D)V
.registers 4
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "progress"
.end annotation
.line 2
invoke-virtual {p1, p2, p3}, Lcom/facebook/react/views/progressbar/ProgressBarContainerView;->setProgress(D)V
return-void
.end method
.method public bridge synthetic setStyleAttr(Landroid/view/View;Ljava/lang/String;)V
.registers 3
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "styleAttr"
.end annotation
.line 1
check-cast p1, Lcom/facebook/react/views/progressbar/ProgressBarContainerView;
invoke-virtual {p0, p1, p2}, Lcom/facebook/react/views/progressbar/ReactProgressBarViewManager;->setStyleAttr(Lcom/facebook/react/views/progressbar/ProgressBarContainerView;Ljava/lang/String;)V
return-void
.end method
.method public setStyleAttr(Lcom/facebook/react/views/progressbar/ProgressBarContainerView;Ljava/lang/String;)V
.registers 3
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "styleAttr"
.end annotation
.line 2
invoke-virtual {p1, p2}, Lcom/facebook/react/views/progressbar/ProgressBarContainerView;->setStyle(Ljava/lang/String;)V
return-void
.end method
.method public bridge synthetic setTestID(Landroid/view/View;Ljava/lang/String;)V
.registers 3
.line 1
check-cast p1, Lcom/facebook/react/views/progressbar/ProgressBarContainerView;
invoke-virtual {p0, p1, p2}, Lcom/facebook/react/views/progressbar/ReactProgressBarViewManager;->setTestID(Lcom/facebook/react/views/progressbar/ProgressBarContainerView;Ljava/lang/String;)V
return-void
.end method
.method public setTestID(Lcom/facebook/react/views/progressbar/ProgressBarContainerView;Ljava/lang/String;)V
.registers 3
.line 2
invoke-super {p0, p1, p2}, Lcom/facebook/react/uimanager/BaseViewManager;->setTestId(Landroid/view/View;Ljava/lang/String;)V
return-void
.end method
.method public bridge synthetic setTypeAttr(Landroid/view/View;Ljava/lang/String;)V
.registers 3
check-cast p1, Lcom/facebook/react/views/progressbar/ProgressBarContainerView;
invoke-virtual {p0, p1, p2}, Lcom/facebook/react/views/progressbar/ReactProgressBarViewManager;->setTypeAttr(Lcom/facebook/react/views/progressbar/ProgressBarContainerView;Ljava/lang/String;)V
return-void
.end method
.method public setTypeAttr(Lcom/facebook/react/views/progressbar/ProgressBarContainerView;Ljava/lang/String;)V
.registers 3
return-void
.end method
.method public bridge synthetic updateExtraData(Landroid/view/View;Ljava/lang/Object;)V
.registers 3
check-cast p1, Lcom/facebook/react/views/progressbar/ProgressBarContainerView;
invoke-virtual {p0, p1, p2}, Lcom/facebook/react/views/progressbar/ReactProgressBarViewManager;->updateExtraData(Lcom/facebook/react/views/progressbar/ProgressBarContainerView;Ljava/lang/Object;)V
return-void
.end method
.method public updateExtraData(Lcom/facebook/react/views/progressbar/ProgressBarContainerView;Ljava/lang/Object;)V
.registers 3
return-void
.end method