b0.smali

.class public final synthetic Lcom/google/android/exoplayer2/analytics/b0;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lcom/google/android/exoplayer2/util/p$a;
.implements Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout$j;
.implements Lcom/shopee/sz/mediasdk/sticker/framwork/oldsticker/touch/MultiTouchListener$b;


# instance fields
.field public final synthetic a:Ljava/lang/Object;

.field public final synthetic b:Ljava/lang/Object;


# direct methods
.method public synthetic constructor <init>(Ljava/lang/Object;Ljava/lang/Object;)V
    .registers 3

    iput-object p1, p0, Lcom/google/android/exoplayer2/analytics/b0;->a:Ljava/lang/Object;

    iput-object p2, p0, Lcom/google/android/exoplayer2/analytics/b0;->b:Ljava/lang/Object;

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

    return-void
.end method


# virtual methods
.method public final invoke(Ljava/lang/Object;)V
    .registers 2

    check-cast p1, Lcom/google/android/exoplayer2/analytics/b;

    invoke-interface {p1}, Lcom/google/android/exoplayer2/analytics/b;->f0()V

    return-void
.end method

.method public final onRefresh()V
    .registers 7

    iget-object v0, p0, Lcom/google/android/exoplayer2/analytics/b0;->a:Ljava/lang/Object;

    check-cast v0, Lcom/shopee/app/ui/home/native_home/NativeHomeView;

    iget-object v1, p0, Lcom/google/android/exoplayer2/analytics/b0;->b:Ljava/lang/Object;

    check-cast v1, Lcom/shopee/app/ui/home/native_home/view/b;

    .line 1
    sget v2, Lcom/shopee/app/ui/home/native_home/NativeHomeView;->O:I

    add-int/lit8 v2, v2, 0x1

    sput v2, Lcom/shopee/app/ui/home/native_home/NativeHomeView;->O:I

    .line 2
    sget-object v2, Lcom/shopee/app/tracking/splogger/helper/f;->a:Lcom/shopee/app/tracking/splogger/helper/f;

    const-string v3, "[Shopee Homepage]Pull to refresh"

    const/4 v4, 0x0

    const/4 v5, 0x4

    invoke-static {v2, v3, v4, v5}, Lcom/shopee/app/tracking/splogger/helper/f;->l(Lcom/shopee/app/tracking/splogger/helper/f;Ljava/lang/String;Ljava/lang/Object;I)V

    const/4 v2, 0x0

    new-array v5, v2, [Ljava/lang/Object;

    .line 3
    invoke-static {v3, v5}, Lcom/garena/android/appkit/logging/a;->z(Ljava/lang/String;[Ljava/lang/Object;)V

    .line 4
    iget-object v3, v0, Lcom/shopee/app/ui/home/native_home/NativeHomeView;->i:Lcom/shopee/app/ui/home/native_home/engine/v0;

    if-eqz v3, :cond_34

    .line 5
    iget-object v3, v3, Lcom/shopee/app/ui/home/native_home/engine/v0;->e:Lcom/shopee/app/ui/home/native_home/cell/nested_recycle/NestedRecyclerViewHolderCreator;

    if-eqz v3, :cond_34

    .line 6
    invoke-virtual {v1}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v3, v1}, Lcom/shopee/app/ui/home/native_home/cell/nested_recycle/NestedRecyclerViewHolderCreator;->getRNView(Landroid/content/Context;)Lcom/shopee/app/ui/home/native_home/cell/nested_recycle/NestedRecyclerViewHolderCreator$SingleRNView;

    move-result-object v1

    if-eqz v1, :cond_34

    .line 7
    invoke-virtual {v1, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    goto :goto_35

    :cond_34
    move-object v1, v4

    .line 8
    :goto_35
    instance-of v2, v1, Lcom/shopee/app/ui/home/react/ReactTabView;

    if-eqz v2, :cond_3c

    check-cast v1, Lcom/shopee/app/ui/home/react/ReactTabView;

    goto :goto_3d

    :cond_3c
    move-object v1, v4

    :goto_3d
    if-eqz v1, :cond_4e

    .line 9
    invoke-virtual {v1}, Lcom/shopee/app/ui/home/react/ReactTabView;->getReactContext()Lcom/facebook/react/bridge/ReactContext;

    move-result-object v1

    if-eqz v1, :cond_4e

    const-class v2, Lcom/facebook/react/modules/core/DeviceEventManagerModule$RCTDeviceEventEmitter;

    invoke-virtual {v1, v2}, Lcom/facebook/react/bridge/ReactContext;->getJSModule(Ljava/lang/Class;)Lcom/facebook/react/bridge/JavaScriptModule;

    move-result-object v1

    check-cast v1, Lcom/facebook/react/modules/core/DeviceEventManagerModule$RCTDeviceEventEmitter;

    goto :goto_4f

    :cond_4e
    move-object v1, v4

    :goto_4f
    if-eqz v1, :cond_56

    const-string v2, "notifyNativeHomePageSwipeRefreshed"

    .line 10
    invoke-interface {v1, v2, v4}, Lcom/facebook/react/modules/core/DeviceEventManagerModule$RCTDeviceEventEmitter;->emit(Ljava/lang/String;Ljava/lang/Object;)V

    .line 11
    :cond_56
    iget-object v1, v0, Lcom/shopee/app/ui/home/native_home/NativeHomeView;->i:Lcom/shopee/app/ui/home/native_home/engine/v0;

    if-eqz v1, :cond_67

    .line 12
    iget-object v1, v1, Lcom/shopee/app/ui/home/native_home/engine/v0;->j:Lcom/shopee/leego/TangramEngine;

    if-eqz v1, :cond_67

    .line 13
    const-class v2, Lcom/shopee/leego/eventbus/BusSupport;

    invoke-virtual {v1, v2}, Lcom/shopee/leego/BaseTangramEngine;->getService(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/shopee/leego/eventbus/BusSupport;

    goto :goto_68

    :cond_67
    move-object v1, v4

    :goto_68
    if-eqz v1, :cond_78

    .line 14
    new-instance v2, Landroidx/collection/a;

    invoke-direct {v2}, Landroidx/collection/a;-><init>()V

    const-string v3, "onHomeTabRefreshTriggered"

    .line 15
    invoke-static {v3, v4, v2, v4}, Lcom/shopee/leego/eventbus/BusSupport;->obtainEvent(Ljava/lang/String;Ljava/lang/String;Landroidx/collection/a;Lcom/shopee/leego/eventbus/EventContext;)Lcom/shopee/leego/eventbus/Event;

    move-result-object v2

    .line 16
    invoke-virtual {v1, v2}, Lcom/shopee/leego/eventbus/BusSupport;->post(Lcom/shopee/leego/eventbus/Event;)Z

    .line 17
    :cond_78
    iget-object v0, v0, Lcom/shopee/app/ui/home/native_home/NativeHomeView;->l:Lcom/shopee/app/ui/home/native_home/j;

    if-eqz v0, :cond_86

    sget-object v1, Lcom/shopee/app/ui/home/native_home/engine/t;->a:Lcom/shopee/app/ui/home/native_home/engine/t;

    new-instance v2, Ljava/lang/ref/WeakReference;

    invoke-direct {v2, v0}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    invoke-virtual {v1, v2}, Lcom/shopee/app/ui/home/native_home/engine/t;->s(Ljava/lang/ref/WeakReference;)V

    :cond_86
    return-void
.end method