y.smali
.class public Lx7/y;
.super Landroidx/appcompat/widget/AppCompatTextView;
.source "WeekDayView.java"
# annotations
.annotation build Landroid/annotation/SuppressLint;
value = {
"ViewConstructor"
}
.end annotation
# instance fields
.field public a:Ly7/h;
.field public b:Lorg/threeten/bp/DayOfWeek;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Lorg/threeten/bp/DayOfWeek;)V
.registers 4
invoke-direct {p0, p1}, Landroidx/appcompat/widget/AppCompatTextView;-><init>(Landroid/content/Context;)V
sget-object p1, Ly7/h;->a:Ly7/h;
iput-object p1, p0, Lx7/y;->a:Ly7/h;
const/16 p1, 0x11
invoke-virtual {p0, p1}, Landroid/widget/TextView;->setGravity(I)V
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
if-lt v0, p1, :cond_14
const/4 p1, 0x4
invoke-virtual {p0, p1}, Landroid/widget/TextView;->setTextAlignment(I)V
:cond_14
invoke-virtual {p0, p2}, Lx7/y;->a(Lorg/threeten/bp/DayOfWeek;)V
return-void
.end method
# virtual methods
.method public a(Lorg/threeten/bp/DayOfWeek;)V
.registers 3
iput-object p1, p0, Lx7/y;->b:Lorg/threeten/bp/DayOfWeek;
iget-object v0, p0, Lx7/y;->a:Ly7/h;
invoke-interface {v0, p1}, Ly7/h;->a(Lorg/threeten/bp/DayOfWeek;)Ljava/lang/CharSequence;
move-result-object p1
invoke-virtual {p0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
return-void
.end method
.method public a(Ly7/h;)V
.registers 2
.param p1 # Ly7/h;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
if-nez p1, :cond_4
sget-object p1, Ly7/h;->a:Ly7/h;
:cond_4
iput-object p1, p0, Lx7/y;->a:Ly7/h;
iget-object p1, p0, Lx7/y;->b:Lorg/threeten/bp/DayOfWeek;
invoke-virtual {p0, p1}, Lx7/y;->a(Lorg/threeten/bp/DayOfWeek;)V
return-void
.end method