HurriyetNotificationsView.smali

.class public Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;
.super Landroid/widget/RelativeLayout;
.source "HurriyetNotificationsView.java"


# instance fields
.field private externalHurriyetNotificationsViewListener:Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewListener;

.field private final itemClickListener:Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewListener;

.field private lastVisibleItemPosition:I

.field private loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;

.field private noficationsEmptyV:Landroid/view/View;

.field private notificationSettingsV:Landroid/view/View;

.field private notificationsAdapter:Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewAdapter;

.field private notificationsList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lhurriyet/mobil/android/hurriyet/views/notificationsview/NotificationModel;",
            ">;"
        }
    .end annotation
.end field

.field private notificationsRecycler:Landroidx/recyclerview/widget/RecyclerView;

.field private notificationsRecyclerLLM:Landroidx/recyclerview/widget/LinearLayoutManager;

.field private final recyclerScrollListener:Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 3

    .line 36
    invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    .line 30
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsList:Ljava/util/List;

    .line 98
    new-instance v0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView$1;

    invoke-direct {v0, p0}, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView$1;-><init>(Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;)V

    iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->recyclerScrollListener:Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;

    .line 130
    new-instance v0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView$2;

    invoke-direct {v0, p0}, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView$2;-><init>(Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;)V

    iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->itemClickListener:Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewListener;

    const/4 v0, 0x0

    .line 37
    invoke-direct {p0, p1, v0}, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->init(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 4

    .line 41
    invoke-direct {p0, p1, p2}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 30
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsList:Ljava/util/List;

    .line 98
    new-instance v0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView$1;

    invoke-direct {v0, p0}, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView$1;-><init>(Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;)V

    iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->recyclerScrollListener:Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;

    .line 130
    new-instance v0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView$2;

    invoke-direct {v0, p0}, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView$2;-><init>(Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;)V

    iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->itemClickListener:Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewListener;

    .line 42
    invoke-direct {p0, p1, p2}, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->init(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 4

    .line 46
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 30
    new-instance p3, Ljava/util/ArrayList;

    invoke-direct {p3}, Ljava/util/ArrayList;-><init>()V

    iput-object p3, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsList:Ljava/util/List;

    .line 98
    new-instance p3, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView$1;

    invoke-direct {p3, p0}, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView$1;-><init>(Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;)V

    iput-object p3, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->recyclerScrollListener:Landroidx/recyclerview/widget/RecyclerView$OnScrollListener;

    .line 130
    new-instance p3, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView$2;

    invoke-direct {p3, p0}, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView$2;-><init>(Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;)V

    iput-object p3, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->itemClickListener:Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewListener;

    .line 47
    invoke-direct {p0, p1, p2}, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->init(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method static synthetic access$000(Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;)Landroidx/recyclerview/widget/LinearLayoutManager;
    .registers 1

    .line 24
    iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsRecyclerLLM:Landroidx/recyclerview/widget/LinearLayoutManager;

    return-object p0
.end method

.method static synthetic access$100(Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;)I
    .registers 1

    .line 24
    iget p0, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->lastVisibleItemPosition:I

    return p0
.end method

.method static synthetic access$102(Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;I)I
    .registers 2

    .line 24
    iput p1, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->lastVisibleItemPosition:I

    return p1
.end method

.method static synthetic access$200(Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewAdapter;I)V
    .registers 3

    .line 24
    invoke-direct {p0, p1, p2}, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->checkItemVisibilityAtPosition(Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewAdapter;I)V

    return-void
.end method

.method static synthetic access$300(Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;)Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewListener;
    .registers 1

    .line 24
    iget-object p0, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->externalHurriyetNotificationsViewListener:Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewListener;

    return-object p0
.end method

.method private checkItemVisibilityAtPosition(Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewAdapter;I)V
    .registers 5

    .line 118
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsList:Ljava/util/List;

    if-eqz v0, :cond_37

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-le v0, p2, :cond_37

    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsList:Ljava/util/List;

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_37

    .line 119
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsList:Ljava/util/List;

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/NotificationModel;

    iget-boolean v0, v0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/NotificationModel;->isSeen:Z

    if-nez v0, :cond_37

    .line 120
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsList:Ljava/util/List;

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/NotificationModel;

    const/4 v1, 0x1

    iput-boolean v1, v0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/NotificationModel;->isSeen:Z

    .line 121
    invoke-virtual {p1, p2}, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewAdapter;->notifyItemChanged(I)V

    .line 122
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->externalHurriyetNotificationsViewListener:Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewListener;

    if-eqz p1, :cond_37

    .line 123
    invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->getUnseenNotificationCount()I

    move-result p2

    invoke-interface {p1, p2}, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewListener;->onNotificationCountChanged(I)V

    :cond_37
    return-void
.end method

.method private getUnseenNotificationCount()I
    .registers 4

    .line 181
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsList:Ljava/util/List;

    const/4 v1, 0x0

    if-eqz v0, :cond_24

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_24

    .line 182
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsList:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_11
    :goto_11
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_24

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lhurriyet/mobil/android/hurriyet/views/notificationsview/NotificationModel;

    .line 183
    iget-boolean v2, v2, Lhurriyet/mobil/android/hurriyet/views/notificationsview/NotificationModel;->isSeen:Z

    if-nez v2, :cond_11

    add-int/lit8 v1, v1, 0x1

    goto :goto_11

    :cond_24
    return v1
.end method

.method private init(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 5

    .line 53
    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p1

    const p2, 0x7f0c00bd

    const/4 v0, 0x0

    invoke-virtual {p1, p2, p0, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/view/ViewGroup;

    if-nez p1, :cond_11

    return-void

    :cond_11
    const p2, 0x7f0901a5

    .line 57
    invoke-virtual {p1, p2}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroidx/recyclerview/widget/RecyclerView;

    iput-object p2, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsRecycler:Landroidx/recyclerview/widget/RecyclerView;

    const p2, 0x7f0901a3

    .line 58
    invoke-virtual {p1, p2}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object p2

    iput-object p2, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->noficationsEmptyV:Landroid/view/View;

    const p2, 0x7f0901a6

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

    move-result-object p2

    iput-object p2, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationSettingsV:Landroid/view/View;

    const p2, 0x7f0901a4

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

    move-result-object p2

    check-cast p2, Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;

    iput-object p2, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;

    .line 62
    invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->isNotificationsDisabled()Z

    move-result p2

    const/16 v1, 0x8

    if-eqz p2, :cond_51

    .line 63
    iget-object p2, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsRecycler:Landroidx/recyclerview/widget/RecyclerView;

    invoke-virtual {p2, v1}, Landroidx/recyclerview/widget/RecyclerView;->setVisibility(I)V

    .line 64
    iget-object p2, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->noficationsEmptyV:Landroid/view/View;

    invoke-virtual {p2, v1}, Landroid/view/View;->setVisibility(I)V

    .line 65
    iget-object p2, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationSettingsV:Landroid/view/View;

    invoke-virtual {p2, v0}, Landroid/view/View;->setVisibility(I)V

    goto :goto_65

    .line 67
    :cond_51
    iget-object p2, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsRecycler:Landroidx/recyclerview/widget/RecyclerView;

    invoke-virtual {p2, v1}, Landroidx/recyclerview/widget/RecyclerView;->setVisibility(I)V

    .line 68
    iget-object p2, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->noficationsEmptyV:Landroid/view/View;

    invoke-virtual {p2, v1}, Landroid/view/View;->setVisibility(I)V

    .line 69
    iget-object p2, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationSettingsV:Landroid/view/View;

    invoke-virtual {p2, v1}, Landroid/view/View;->setVisibility(I)V

    .line 70
    iget-object p2, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;

    invoke-virtual {p2}, Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;->show()V

    .line 74
    :goto_65
    invoke-virtual {p0, p1}, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->addView(Landroid/view/View;)V

    return-void
.end method

.method private initRecyclerView()V
    .registers 5

    .line 78
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsList:Ljava/util/List;

    if-eqz v0, :cond_31

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-gez v0, :cond_b

    goto :goto_31

    .line 81
    :cond_b
    new-instance v0, Landroidx/recyclerview/widget/LinearLayoutManager;

    invoke-static {}, Lhurriyet/mobil/android/hurriyet/HApp;->getAppContext()Landroid/content/Context;

    move-result-object v1

    const/4 v2, 0x1

    const/4 v3, 0x0

    invoke-direct {v0, v1, v2, v3}, Landroidx/recyclerview/widget/LinearLayoutManager;-><init>(Landroid/content/Context;IZ)V

    iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsRecyclerLLM:Landroidx/recyclerview/widget/LinearLayoutManager;

    .line 83
    new-instance v0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewAdapter;

    iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsList:Ljava/util/List;

    iget-object v2, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->itemClickListener:Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewListener;

    invoke-direct {v0, v1, v2}, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewAdapter;-><init>(Ljava/util/List;Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewListener;)V

    iput-object v0, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsAdapter:Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewAdapter;

    .line 85
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsRecycler:Landroidx/recyclerview/widget/RecyclerView;

    iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsRecyclerLLM:Landroidx/recyclerview/widget/LinearLayoutManager;

    invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V

    .line 87
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsRecycler:Landroidx/recyclerview/widget/RecyclerView;

    iget-object v1, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsAdapter:Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewAdapter;

    invoke-virtual {v0, v1}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    :cond_31
    :goto_31
    return-void
.end method

.method private isNotificationsDisabled()Z
    .registers 2

    .line 176
    invoke-static {}, Lhurriyet/mobil/android/hurriyet/utils/SharedPreferencesHelper;->getNotificationsGeneralEnabled()Z

    move-result v0

    xor-int/lit8 v0, v0, 0x1

    return v0
.end method


# virtual methods
.method public setDataList(Ljava/util/List;)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lhurriyet/mobil/android/hurriyet/views/notificationsview/NotificationModel;",
            ">;)V"
        }
    .end annotation

    .line 146
    iget-object v0, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->loadingView:Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;

    invoke-virtual {v0}, Lhurriyet/mobil/android/hurriyet/views/HurriyetLoadingView;->hide()V

    .line 147
    invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->isNotificationsDisabled()Z

    move-result v0

    const/4 v1, 0x0

    const/16 v2, 0x8

    if-eqz v0, :cond_1e

    .line 148
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsRecycler:Landroidx/recyclerview/widget/RecyclerView;

    invoke-virtual {p1, v2}, Landroidx/recyclerview/widget/RecyclerView;->setVisibility(I)V

    .line 149
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->noficationsEmptyV:Landroid/view/View;

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 150
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationSettingsV:Landroid/view/View;

    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    goto :goto_4e

    :cond_1e
    if-eqz p1, :cond_3d

    .line 151
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    const/4 v3, 0x1

    if-ge v0, v3, :cond_28

    goto :goto_3d

    .line 157
    :cond_28
    iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsList:Ljava/util/List;

    .line 158
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->noficationsEmptyV:Landroid/view/View;

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 159
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationSettingsV:Landroid/view/View;

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 160
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsRecycler:Landroidx/recyclerview/widget/RecyclerView;

    invoke-virtual {p1, v1}, Landroidx/recyclerview/widget/RecyclerView;->setVisibility(I)V

    .line 161
    invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->initRecyclerView()V

    goto :goto_4e

    .line 152
    :cond_3d
    :goto_3d
    iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsList:Ljava/util/List;

    .line 153
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationsRecycler:Landroidx/recyclerview/widget/RecyclerView;

    invoke-virtual {p1, v2}, Landroidx/recyclerview/widget/RecyclerView;->setVisibility(I)V

    .line 154
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->notificationSettingsV:Landroid/view/View;

    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 155
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->noficationsEmptyV:Landroid/view/View;

    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    .line 163
    :goto_4e
    iget-object p1, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->externalHurriyetNotificationsViewListener:Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewListener;

    invoke-direct {p0}, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->getUnseenNotificationCount()I

    move-result v0

    invoke-interface {p1, v0}, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewListener;->onNotificationCountChanged(I)V

    return-void
.end method

.method public setHurriyetNotificationsViewListener(Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewListener;)V
    .registers 2

    .line 167
    iput-object p1, p0, Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsView;->externalHurriyetNotificationsViewListener:Lhurriyet/mobil/android/hurriyet/views/notificationsview/HurriyetNotificationsViewListener;

    return-void
.end method