CustomLetterSpacingSpan.smali
.class public Lcom/facebook/react/views/text/CustomLetterSpacingSpan;
.super Landroid/text/style/MetricAffectingSpan;
.source "CustomLetterSpacingSpan.java"
# interfaces
.implements Lcom/facebook/react/views/text/ReactSpan;
# annotations
.annotation build Landroid/annotation/TargetApi;
value = 0x15
.end annotation
# instance fields
.field public final mLetterSpacing:F
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(F)V
.registers 2
invoke-direct {p0}, Landroid/text/style/MetricAffectingSpan;-><init>()V
iput p1, p0, Lcom/facebook/react/views/text/CustomLetterSpacingSpan;->mLetterSpacing:F
return-void
.end method
.method private apply(Landroid/text/TextPaint;)V
.registers 3
iget v0, p0, Lcom/facebook/react/views/text/CustomLetterSpacingSpan;->mLetterSpacing:F
invoke-static {v0}, Ljava/lang/Float;->isNaN(F)Z
move-result v0
if-nez v0, :cond_d
iget v0, p0, Lcom/facebook/react/views/text/CustomLetterSpacingSpan;->mLetterSpacing:F
invoke-virtual {p1, v0}, Landroid/text/TextPaint;->setLetterSpacing(F)V
:cond_d
return-void
.end method
# virtual methods
.method public updateDrawState(Landroid/text/TextPaint;)V
.registers 2
invoke-direct {p0, p1}, Lcom/facebook/react/views/text/CustomLetterSpacingSpan;->apply(Landroid/text/TextPaint;)V
return-void
.end method
.method public updateMeasureState(Landroid/text/TextPaint;)V
.registers 2
invoke-direct {p0, p1}, Lcom/facebook/react/views/text/CustomLetterSpacingSpan;->apply(Landroid/text/TextPaint;)V
return-void
.end method