DisplayTextFragment.smali

.class public Lhurriyet/mobil/android/hurriyet/fragments/DisplayTextFragment;
.super Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;
.source "DisplayTextFragment.java"


# instance fields
.field private closeTv:Landroid/view/View;

.field private copyTv:Landroid/view/View;

.field private data:Lhurriyet/mobil/android/hurriyet/datatransferobjects/DisplayTextFragmentData;

.field private displayTv:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .registers 1

    .line 24
    invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;-><init>()V

    return-void
.end method

.method static synthetic access$000(Lhurriyet/mobil/android/hurriyet/fragments/DisplayTextFragment;)Lhurriyet/mobil/android/hurriyet/datatransferobjects/DisplayTextFragmentData;
    .registers 1

    .line 24
    iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/fragments/DisplayTextFragment;->data:Lhurriyet/mobil/android/hurriyet/datatransferobjects/DisplayTextFragmentData;

    return-object p0
.end method

.method private findViews(Landroid/view/View;)V
    .registers 3

    const v0, 0x7f090131

    .line 59
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/DisplayTextFragment;->displayTv:Landroid/widget/TextView;

    const v0, 0x7f090130

    .line 60
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/DisplayTextFragment;->copyTv:Landroid/view/View;

    const v0, 0x7f09012f

    .line 61
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/DisplayTextFragment;->closeTv:Landroid/view/View;

    return-void
.end method

.method private initViews()V
    .registers 3

    .line 65
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/DisplayTextFragment;->data:Lhurriyet/mobil/android/hurriyet/datatransferobjects/DisplayTextFragmentData;

    if-nez v0, :cond_5

    return-void

    .line 68
    :cond_5
    iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/fragments/DisplayTextFragment;->displayTv:Landroid/widget/TextView;

    iget-object v0, v0, Lhurriyet/mobil/android/hurriyet/datatransferobjects/DisplayTextFragmentData;->textToBeDisplayed:Ljava/lang/String;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 69
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/DisplayTextFragment;->copyTv:Landroid/view/View;

    new-instance v1, Lhurriyet/mobil/android/hurriyet/fragments/DisplayTextFragment$1;

    invoke-direct {v1, p0}, Lhurriyet/mobil/android/hurriyet/fragments/DisplayTextFragment$1;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/DisplayTextFragment;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 83
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/fragments/DisplayTextFragment;->closeTv:Landroid/view/View;

    new-instance v1, Lhurriyet/mobil/android/hurriyet/fragments/DisplayTextFragment$2;

    invoke-direct {v1, p0}, Lhurriyet/mobil/android/hurriyet/fragments/DisplayTextFragment$2;-><init>(Lhurriyet/mobil/android/hurriyet/fragments/DisplayTextFragment;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method public static newInstance()Landroidx/fragment/app/Fragment;
    .registers 1

    .line 47
    new-instance v0, Lhurriyet/mobil/android/hurriyet/fragments/DisplayTextFragment;

    invoke-direct {v0}, Lhurriyet/mobil/android/hurriyet/fragments/DisplayTextFragment;-><init>()V

    return-object v0
.end method


# virtual methods
.method protected getConfigurationsForFragment(Lcom/appcore/configuration/ConfigurationsForFragment;)V
    .registers 3

    const v0, 0x7f0c005d

    .line 38
    iput v0, p1, Lcom/appcore/configuration/ConfigurationsForFragment;->layoutID:I

    return-void
.end method

.method protected isTabVisible()Z
    .registers 2

    const/4 v0, 0x0

    return v0
.end method

.method protected onDataReceived(Lcom/appcore/utils/helpers/DataTransferObject;Z)V
    .registers 3

    .line 43
    check-cast p1, Lhurriyet/mobil/android/hurriyet/datatransferobjects/DisplayTextFragmentData;

    iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/fragments/DisplayTextFragment;->data:Lhurriyet/mobil/android/hurriyet/datatransferobjects/DisplayTextFragmentData;

    return-void
.end method

.method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
    .registers 3

    .line 52
    invoke-super {p0, p1, p2}, Lhurriyet/mobil/android/hurriyet/fragments/BaseFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V

    .line 54
    invoke-direct {p0, p1}, Lhurriyet/mobil/android/hurriyet/fragments/DisplayTextFragment;->findViews(Landroid/view/View;)V

    .line 55
    invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/fragments/DisplayTextFragment;->initViews()V

    return-void
.end method