2019-07-24 11:27:29 +00:00
|
|
|
.class public Lcom/lytefast/flexinput/fragment/PhotosFragment;
|
|
|
|
.super Lcom/lytefast/flexinput/fragment/PermissionsFragment;
|
|
|
|
.source "PhotosFragment.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/lytefast/flexinput/fragment/PhotosFragment$Companion;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final Companion:Lcom/lytefast/flexinput/fragment/PhotosFragment$Companion;
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.field private static final GRID_LAYOUT_SPAN_COUNT:I = 0x3
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
.field private static final REQUIRED_PERMISSION:Ljava/lang/String; = "android.permission.READ_EXTERNAL_STORAGE"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field private recyclerView:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
.field private selectionCoordinator:Lcom/lytefast/flexinput/utils/SelectionCoordinator;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lcom/lytefast/flexinput/utils/SelectionCoordinator<",
|
|
|
|
"Lcom/lytefast/flexinput/model/Attachment<",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">;",
|
|
|
|
"Lcom/lytefast/flexinput/model/Photo;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field private swipeRefreshLayout:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method static constructor <clinit>()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
new-instance v0, Lcom/lytefast/flexinput/fragment/PhotosFragment$Companion;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lcom/lytefast/flexinput/fragment/PhotosFragment$Companion;-><init>(B)V
|
|
|
|
|
|
|
|
sput-object v0, Lcom/lytefast/flexinput/fragment/PhotosFragment;->Companion:Lcom/lytefast/flexinput/fragment/PhotosFragment$Companion;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/lytefast/flexinput/fragment/PermissionsFragment;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$requestPermissions(Lcom/lytefast/flexinput/fragment/PhotosFragment;Lcom/lytefast/flexinput/adapters/PhotoCursorAdapter;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/lytefast/flexinput/fragment/PhotosFragment;->requestPermissions(Lcom/lytefast/flexinput/adapters/PhotoCursorAdapter;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final requestPermissions(Lcom/lytefast/flexinput/adapters/PhotoCursorAdapter;)V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
new-instance v0, Lcom/lytefast/flexinput/fragment/PhotosFragment$c;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/lytefast/flexinput/fragment/PhotosFragment$c;-><init>(Lcom/lytefast/flexinput/fragment/PhotosFragment;Lcom/lytefast/flexinput/adapters/PhotoCursorAdapter;)V
|
|
|
|
|
|
|
|
check-cast v0, Lcom/lytefast/flexinput/fragment/PermissionsFragment$PermissionsResultCallback;
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
new-array p1, p1, [Ljava/lang/String;
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
const/4 v1, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
const-string v2, "android.permission.READ_EXTERNAL_STORAGE"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
aput-object v2, p1, v1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/lytefast/flexinput/fragment/PhotosFragment;->requestPermissions(Lcom/lytefast/flexinput/fragment/PermissionsFragment$PermissionsResultCallback;[Ljava/lang/String;)Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-10-03 02:31:26 +00:00
|
|
|
.method public final getRecyclerView$flexinput_release()Landroidx/recyclerview/widget/RecyclerView;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment;->recyclerView:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.method public final getSwipeRefreshLayout$flexinput_release()Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment;->swipeRefreshLayout:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected newPermissionsRequestAdapter(Landroid/view/View$OnClickListener;)Lcom/lytefast/flexinput/adapters/EmptyListAdapter;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
const-string v0, "onClickListener"
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance v0, Lcom/lytefast/flexinput/adapters/EmptyListAdapter;
|
|
|
|
|
|
|
|
sget v1, Lcom/lytefast/flexinput/R$f;->item_permission_storage:I
|
|
|
|
|
|
|
|
sget v2, Lcom/lytefast/flexinput/R$e;->permissions_req_btn:I
|
|
|
|
|
|
|
|
invoke-direct {v0, v1, v2, p1}, Lcom/lytefast/flexinput/adapters/EmptyListAdapter;-><init>(IILandroid/view/View$OnClickListener;)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
const-string p3, "inflater"
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {p1, p3}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance p3, Lcom/lytefast/flexinput/utils/SelectionCoordinator;
|
|
|
|
|
|
|
|
invoke-direct {p3}, Lcom/lytefast/flexinput/utils/SelectionCoordinator;-><init>()V
|
|
|
|
|
|
|
|
iput-object p3, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment;->selectionCoordinator:Lcom/lytefast/flexinput/utils/SelectionCoordinator;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/lytefast/flexinput/fragment/PhotosFragment;->getParentFragment()Landroidx/fragment/app/Fragment;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p3}, Landroidx/fragment/app/Fragment;->getParentFragment()Landroidx/fragment/app/Fragment;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
move-object p3, v0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
instance-of v1, p3, Lcom/lytefast/flexinput/FlexInputCoordinator;
|
|
|
|
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
move-object p3, v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
check-cast p3, Lcom/lytefast/flexinput/FlexInputCoordinator;
|
|
|
|
|
|
|
|
if-eqz p3, :cond_3
|
|
|
|
|
2019-11-13 02:27:29 +00:00
|
|
|
invoke-interface {p3}, Lcom/lytefast/flexinput/FlexInputCoordinator;->Ba()Lcom/lytefast/flexinput/utils/SelectionAggregator;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment;->selectionCoordinator:Lcom/lytefast/flexinput/utils/SelectionCoordinator;
|
|
|
|
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {}, Lkotlin/jvm/internal/l;->throwNpe()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual {p3, v1}, Lcom/lytefast/flexinput/utils/SelectionAggregator;->registerSelectionCoordinator(Lcom/lytefast/flexinput/utils/SelectionCoordinator;)V
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
sget p3, Lcom/lytefast/flexinput/R$f;->fragment_recycler_view:I
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {p1, p3, p2, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
if-eqz p1, :cond_b
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget p2, Lcom/lytefast/flexinput/R$e;->list:I
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
check-cast p2, Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
iput-object p2, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment;->recyclerView:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-virtual {p0}, Lcom/lytefast/flexinput/fragment/PhotosFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Landroidx/fragment/app/FragmentActivity;->getWindowManager()Landroid/view/WindowManager;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
|
|
|
|
invoke-interface {p2}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
new-instance p2, Landroid/graphics/Point;
|
|
|
|
|
|
|
|
invoke-direct {p2}, Landroid/graphics/Point;-><init>()V
|
|
|
|
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
|
|
|
|
invoke-virtual {v0, p2}, Landroid/view/Display;->getSize(Landroid/graphics/Point;)V
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
iget p2, p2, Landroid/graphics/Point;->x:I
|
|
|
|
|
|
|
|
int-to-float p2, p2
|
|
|
|
|
|
|
|
const/high16 p3, 0x40400000 # 3.0f
|
|
|
|
|
|
|
|
div-float/2addr p2, p3
|
|
|
|
|
|
|
|
float-to-int p2, p2
|
|
|
|
|
|
|
|
new-instance p3, Lcom/lytefast/flexinput/adapters/PhotoCursorAdapter;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
move-result-object v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
const-string v2, "context"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
move-result-object v0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
const-string v2, "context.contentResolver"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iget-object v2, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment;->selectionCoordinator:Lcom/lytefast/flexinput/utils/SelectionCoordinator;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
if-nez v2, :cond_6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {}, Lkotlin/jvm/internal/l;->throwNpe()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
:cond_6
|
|
|
|
invoke-direct {p3, v0, v2, p2, p2}, Lcom/lytefast/flexinput/adapters/PhotoCursorAdapter;-><init>(Landroid/content/ContentResolver;Lcom/lytefast/flexinput/utils/SelectionCoordinator;II)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
const/4 p2, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
new-array p2, p2, [Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
const-string v0, "android.permission.READ_EXTERNAL_STORAGE"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
aput-object v0, p2, v1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-virtual {p0, p2}, Lcom/lytefast/flexinput/fragment/PhotosFragment;->hasPermissions([Ljava/lang/String;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
move-result p2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
if-eqz p2, :cond_8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iget-object p2, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment;->recyclerView:Landroidx/recyclerview/widget/RecyclerView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
if-eqz p2, :cond_7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance v0, Landroidx/recyclerview/widget/GridLayoutManager;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const/4 v2, 0x3
|
|
|
|
|
|
|
|
invoke-direct {v0, v1, v2}, Landroidx/recyclerview/widget/GridLayoutManager;-><init>(Landroid/content/Context;I)V
|
|
|
|
|
|
|
|
check-cast v0, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-virtual {p2, v0}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
:cond_7
|
|
|
|
iget-object p2, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment;->recyclerView:Landroidx/recyclerview/widget/RecyclerView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
if-eqz p2, :cond_9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
move-object v0, p3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
check-cast v0, Landroidx/recyclerview/widget/RecyclerView$Adapter;
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-virtual {p2, v0}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
:cond_8
|
|
|
|
iget-object p2, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment;->recyclerView:Landroidx/recyclerview/widget/RecyclerView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
if-eqz p2, :cond_9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance v0, Lcom/lytefast/flexinput/fragment/PhotosFragment$a;
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-direct {v0, p3, p0}, Lcom/lytefast/flexinput/fragment/PhotosFragment$a;-><init>(Lcom/lytefast/flexinput/adapters/PhotoCursorAdapter;Lcom/lytefast/flexinput/fragment/PhotosFragment;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
check-cast v0, Landroid/view/View$OnClickListener;
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Lcom/lytefast/flexinput/fragment/PhotosFragment;->newPermissionsRequestAdapter(Landroid/view/View$OnClickListener;)Lcom/lytefast/flexinput/adapters/EmptyListAdapter;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroidx/recyclerview/widget/RecyclerView$Adapter;
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-virtual {p2, v0}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
:cond_9
|
2019-07-24 11:27:29 +00:00
|
|
|
:goto_1
|
2019-10-03 02:31:26 +00:00
|
|
|
sget p2, Lcom/lytefast/flexinput/R$e;->swipeRefreshLayout:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
move-result-object p2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
check-cast p2, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iput-object p2, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment;->swipeRefreshLayout:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
iget-object p2, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment;->swipeRefreshLayout:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
if-eqz p2, :cond_a
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance v0, Lcom/lytefast/flexinput/fragment/PhotosFragment$b;
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-direct {v0, p3, p0}, Lcom/lytefast/flexinput/fragment/PhotosFragment$b;-><init>(Lcom/lytefast/flexinput/adapters/PhotoCursorAdapter;Lcom/lytefast/flexinput/fragment/PhotosFragment;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
check-cast v0, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout$OnRefreshListener;
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
invoke-virtual {p2, v0}, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;->setOnRefreshListener(Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout$OnRefreshListener;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
:cond_a
|
2019-07-24 11:27:29 +00:00
|
|
|
return-object p1
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
:cond_b
|
2019-07-24 11:27:29 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onDestroyView()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment;->selectionCoordinator:Lcom/lytefast/flexinput/utils/SelectionCoordinator;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
invoke-static {}, Lkotlin/jvm/internal/l;->throwNpe()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {v0}, Lcom/lytefast/flexinput/utils/SelectionCoordinator;->close()V
|
|
|
|
|
|
|
|
invoke-super {p0}, Lcom/lytefast/flexinput/fragment/PermissionsFragment;->onDestroyView()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.method public final setRecyclerView$flexinput_release(Landroidx/recyclerview/widget/RecyclerView;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment;->recyclerView:Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-10-03 02:31:26 +00:00
|
|
|
.method public final setSwipeRefreshLayout$flexinput_release(Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment;->swipeRefreshLayout:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|