RateMeActivity.smali

.class public Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeActivity;
.super Lhurriyet/mobil/android/hurriyet/activities/BaseActivity;
.source "RateMeActivity.java"


# instance fields
.field private mIsUserLiked:Z

.field private root:Landroid/view/View;


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

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

    const/4 v0, 0x1

    .line 26
    iput-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeActivity;->mIsUserLiked:Z

    return-void
.end method


# virtual methods
.method public closeWithAnimation()V
    .registers 5

    .line 84
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeActivity;->root:Landroid/view/View;

    new-instance v1, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeActivity$2;

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

    const/4 v2, 0x0

    const/4 v3, 0x0

    invoke-static {v0, v2, v3, v1}, Lcom/appcore/utils/animations/ReadyAnimations;->fadeOutSlideAlpha(Landroid/view/View;FZLjava/lang/Runnable;)V

    return-void
.end method

.method protected getConfigurationsForActivity(Lcom/appcore/configuration/ConfigurationsForActivity;)V
    .registers 4

    .line 31
    invoke-super {p0, p1}, Lhurriyet/mobil/android/hurriyet/activities/BaseActivity;->getConfigurationsForActivity(Lcom/appcore/configuration/ConfigurationsForActivity;)V

    .line 32
    iget-object v0, p1, Lcom/appcore/configuration/ConfigurationsForActivity;->configurationsForActivity:Lcom/appcore/configuration/ConfigurationsForApplication;

    const/4 v1, 0x0

    iput v1, v0, Lcom/appcore/configuration/ConfigurationsForApplication;->ACTIVITY_CREATE_ANIMATION_ENTER:I

    .line 33
    iget-object v0, p1, Lcom/appcore/configuration/ConfigurationsForActivity;->configurationsForActivity:Lcom/appcore/configuration/ConfigurationsForApplication;

    iput v1, v0, Lcom/appcore/configuration/ConfigurationsForApplication;->ACTIVITY_CREATE_ANIMATION_EXIT:I

    .line 34
    iget-object v0, p1, Lcom/appcore/configuration/ConfigurationsForActivity;->configurationsForActivity:Lcom/appcore/configuration/ConfigurationsForApplication;

    iput v1, v0, Lcom/appcore/configuration/ConfigurationsForApplication;->ACTIVITY_FINISH_ANIMATION_ENTER:I

    .line 35
    iget-object p1, p1, Lcom/appcore/configuration/ConfigurationsForActivity;->configurationsForActivity:Lcom/appcore/configuration/ConfigurationsForApplication;

    iput v1, p1, Lcom/appcore/configuration/ConfigurationsForApplication;->ACTIVITY_FINISH_ANIMATION_EXIT:I

    return-void
.end method

.method public getIfUserLiked()Z
    .registers 2

    .line 80
    iget-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeActivity;->mIsUserLiked:Z

    return v0
.end method

.method protected getInitialFragmentAnimation()Lcom/appcore/utils/helpers/fragment/CoreFragmentAnimation;
    .registers 2

    .line 57
    sget-object v0, Lcom/appcore/utils/helpers/fragment/CoreFragmentAnimation;->ANIMATION_TYPE_NO_ANIMATION:Lcom/appcore/utils/helpers/fragment/CoreFragmentAnimation;

    return-object v0
.end method

.method public onBackPressed()V
    .registers 1

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .registers 2

    .line 40
    invoke-super {p0, p1}, Lhurriyet/mobil/android/hurriyet/activities/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    return-void
.end method

.method public onLayoutInflated(Landroid/view/View;)V
    .registers 3

    .line 45
    invoke-super {p0, p1}, Lhurriyet/mobil/android/hurriyet/activities/BaseActivity;->onLayoutInflated(Landroid/view/View;)V

    const p1, 0x7f090043

    .line 46
    invoke-virtual {p0, p1}, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeActivity;->root:Landroid/view/View;

    .line 47
    new-instance v0, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeActivity$1;

    invoke-direct {v0, p0}, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeActivity$1;-><init>(Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeActivity;)V

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

    return-void
.end method

.method public onUserClickedLater()V
    .registers 2

    .line 107
    invoke-static {}, Lhurriyet/mobil/android/hurriyet/HApp;->getRateMeHelper()Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeHelper;

    move-result-object v0

    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeHelper;->onUserDelayedToRate()V

    .line 108
    invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeActivity;->finish()V

    return-void
.end method

.method public onUserClickedNegative()V
    .registers 2

    .line 112
    iget-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeActivity;->mIsUserLiked:Z

    if-eqz v0, :cond_c

    .line 113
    invoke-static {}, Lhurriyet/mobil/android/hurriyet/HApp;->getRateMeHelper()Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeHelper;

    move-result-object v0

    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeHelper;->onUserRefusedToRate()V

    goto :goto_13

    .line 115
    :cond_c
    invoke-static {}, Lhurriyet/mobil/android/hurriyet/HApp;->getRateMeHelper()Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeHelper;

    move-result-object v0

    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeHelper;->onUserRefusedToSendFeedback()V

    .line 117
    :goto_13
    invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeActivity;->finish()V

    return-void
.end method

.method public onUserDislikedTheApp()V
    .registers 4

    const/4 v0, 0x0

    .line 70
    iput-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeActivity;->mIsUserLiked:Z

    .line 71
    sget-object v1, Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentEnum;->RATE_ME_SECOND:Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentEnum;

    invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;

    move-result-object v2

    invoke-static {v1, v2}, Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController;->newBuilder(Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentEnum;Landroidx/fragment/app/FragmentManager;)Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController$Builder;

    move-result-object v1

    sget-object v2, Lcom/appcore/utils/helpers/fragment/CoreFragmentAnimation;->ANIMATION_TYPE_ENTER_FROM_LEFT:Lcom/appcore/utils/helpers/fragment/CoreFragmentAnimation;

    .line 72
    invoke-virtual {v1, v2}, Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController$Builder;->animationType(Lcom/appcore/utils/helpers/fragment/CoreFragmentAnimation;)Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController$Builder;

    move-result-object v1

    const v2, 0x7f090043

    .line 73
    invoke-virtual {v1, v2}, Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController$Builder;->containerLayoutResId(I)Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController$Builder;

    move-result-object v1

    .line 74
    invoke-virtual {v1, v0}, Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController$Builder;->addToBackStack(Z)Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController$Builder;

    move-result-object v0

    .line 75
    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController$Builder;->build()Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController;

    move-result-object v0

    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController;->replace()Landroidx/fragment/app/Fragment;

    return-void
.end method

.method public onUserLikedTheApp()V
    .registers 3

    const/4 v0, 0x1

    .line 61
    iput-boolean v0, p0, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeActivity;->mIsUserLiked:Z

    .line 62
    sget-object v0, Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentEnum;->RATE_ME_SECOND:Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentEnum;

    invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;

    move-result-object v1

    invoke-static {v0, v1}, Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController;->newBuilder(Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentEnum;Landroidx/fragment/app/FragmentManager;)Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController$Builder;

    move-result-object v0

    sget-object v1, Lcom/appcore/utils/helpers/fragment/CoreFragmentAnimation;->ANIMATION_TYPE_ENTER_FROM_RIGHT:Lcom/appcore/utils/helpers/fragment/CoreFragmentAnimation;

    .line 63
    invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController$Builder;->animationType(Lcom/appcore/utils/helpers/fragment/CoreFragmentAnimation;)Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController$Builder;

    move-result-object v0

    const v1, 0x7f090043

    .line 64
    invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController$Builder;->containerLayoutResId(I)Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController$Builder;

    move-result-object v0

    const/4 v1, 0x0

    .line 65
    invoke-virtual {v0, v1}, Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController$Builder;->addToBackStack(Z)Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController$Builder;

    move-result-object v0

    .line 66
    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController$Builder;->build()Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController;

    move-result-object v0

    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController;->replace()Landroidx/fragment/app/Fragment;

    return-void
.end method

.method public onUserWantsToGiveAFeedback()V
    .registers 4

    .line 99
    invoke-static {}, Lhurriyet/mobil/android/hurriyet/HApp;->getRateMeHelper()Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeHelper;

    move-result-object v0

    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeHelper;->onUserAcceptedToSentFeedBack()V

    .line 100
    new-instance v0, Lhurriyet/mobil/android/hurriyet/datatransferobjects/ContactUsFragmentData;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Lhurriyet/mobil/android/hurriyet/datatransferobjects/ContactUsFragmentData;-><init>(Z)V

    .line 101
    sget-object v1, Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentEnum;->PROFILE_CONTACT_US:Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentEnum;

    const-class v2, Lhurriyet/mobil/android/hurriyet/activities/HurriyetSimpleActivity;

    invoke-static {p0, v1, v2, v0}, Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentController;->replaceOnActivity(Landroid/app/Activity;Lhurriyet/mobil/android/hurriyet/fragments/helpers/HurriyetFragmentEnum;Ljava/lang/Class;Lcom/appcore/utils/helpers/DataTransferObject;)V

    .line 102
    invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeActivity;->finish()V

    return-void
.end method

.method public onUserWantsToRateUs()V
    .registers 2

    .line 93
    invoke-static {}, Lhurriyet/mobil/android/hurriyet/HApp;->getRateMeHelper()Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeHelper;

    move-result-object v0

    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeHelper;->onUserAcceptedToRate()V

    .line 94
    invoke-static {p0}, Lhurriyet/mobil/android/hurriyet/activities/main/MaRedirectHelper;->openStorePage(Landroid/app/Activity;)V

    .line 95
    invoke-virtual {p0}, Lhurriyet/mobil/android/hurriyet/features/rateme/RateMeActivity;->finish()V

    return-void
.end method