HomeFragment$12.smali

.class Lcom/yctpublication/mastes/home/HomeFragment$12;
.super Ljava/lang/Object;
.source "HomeFragment.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/yctpublication/mastes/home/HomeFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/yctpublication/mastes/home/HomeFragment;

.field final synthetic val$view:Landroid/view/View;


# direct methods
.method constructor <init>(Lcom/yctpublication/mastes/home/HomeFragment;Landroid/view/View;)V
    .registers 3
    .annotation system Ldalvik/annotation/MethodParameters;
        accessFlags = {
            0x8010,
            0x1010
        }
        names = {
            "this$0",
            "val$view"
        }
    .end annotation

    .line 326
    iput-object p1, p0, Lcom/yctpublication/mastes/home/HomeFragment$12;->this$0:Lcom/yctpublication/mastes/home/HomeFragment;

    iput-object p2, p0, Lcom/yctpublication/mastes/home/HomeFragment$12;->val$view:Landroid/view/View;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .registers 4
    .annotation system Ldalvik/annotation/MethodParameters;
        accessFlags = {
            0x0
        }
        names = {
            "v"
        }
    .end annotation

    .line 329
    iget-object p1, p0, Lcom/yctpublication/mastes/home/HomeFragment$12;->this$0:Lcom/yctpublication/mastes/home/HomeFragment;

    invoke-virtual {p1}, Lcom/yctpublication/mastes/home/HomeFragment;->getContext()Landroid/content/Context;

    move-result-object p1

    invoke-static {p1}, Lcom/yctpublication/mastes/common/LibraryFunctions;->isNetworkConnected(Landroid/content/Context;)Z

    move-result p1

    if-eqz p1, :cond_14

    .line 331
    iget-object p1, p0, Lcom/yctpublication/mastes/home/HomeFragment$12;->val$view:Landroid/view/View;

    const-string v0, "https://yctpublication.com/"

    invoke-static {p1, v0}, Lcom/yctpublication/mastes/common/LibraryFunctions;->onClickCompany(Landroid/view/View;Ljava/lang/String;)V

    goto :goto_24

    .line 333
    :cond_14
    iget-object p1, p0, Lcom/yctpublication/mastes/home/HomeFragment$12;->this$0:Lcom/yctpublication/mastes/home/HomeFragment;

    invoke-virtual {p1}, Lcom/yctpublication/mastes/home/HomeFragment;->getContext()Landroid/content/Context;

    move-result-object p1

    const/4 v0, 0x0

    const-string v1, "No internet!! Please connect."

    invoke-static {p1, v1, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/Toast;->show()V

    :goto_24
    return-void
.end method