135 lines
4.3 KiB
Smali
135 lines
4.3 KiB
Smali
.class public final Lcom/lytefast/flexinput/fragment/PhotosFragment$c;
|
|
.super Ljava/lang/Object;
|
|
.source "PhotosFragment.kt"
|
|
|
|
# interfaces
|
|
.implements Lcom/lytefast/flexinput/fragment/PermissionsFragment$PermissionsResultCallback;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/lytefast/flexinput/fragment/PhotosFragment;->requestPermissions(Lcom/lytefast/flexinput/adapters/PhotoCursorAdapter;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic a:Lcom/lytefast/flexinput/fragment/PhotosFragment;
|
|
|
|
.field public final synthetic b:Lcom/lytefast/flexinput/adapters/PhotoCursorAdapter;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/lytefast/flexinput/fragment/PhotosFragment;Lcom/lytefast/flexinput/adapters/PhotoCursorAdapter;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/lytefast/flexinput/adapters/PhotoCursorAdapter;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
iput-object p1, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment$c;->a:Lcom/lytefast/flexinput/fragment/PhotosFragment;
|
|
|
|
iput-object p2, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment$c;->b:Lcom/lytefast/flexinput/adapters/PhotoCursorAdapter;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()V
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment$c;->a:Lcom/lytefast/flexinput/fragment/PhotosFragment;
|
|
|
|
invoke-virtual {v0}, Lcom/lytefast/flexinput/fragment/PhotosFragment;->getRecyclerView$flexinput_release()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
new-instance v2, Landroidx/recyclerview/widget/GridLayoutManager;
|
|
|
|
iget-object v3, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment$c;->a:Lcom/lytefast/flexinput/fragment/PhotosFragment;
|
|
|
|
invoke-virtual {v3}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x3
|
|
|
|
invoke-direct {v2, v3, v4}, Landroidx/recyclerview/widget/GridLayoutManager;-><init>(Landroid/content/Context;I)V
|
|
|
|
invoke-virtual {v0, v2}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V
|
|
|
|
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment$c;->a:Lcom/lytefast/flexinput/fragment/PhotosFragment;
|
|
|
|
invoke-virtual {v0}, Lcom/lytefast/flexinput/fragment/PhotosFragment;->getRecyclerView$flexinput_release()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v2, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment$c;->b:Lcom/lytefast/flexinput/adapters/PhotoCursorAdapter;
|
|
|
|
invoke-virtual {v0, v2}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
|
|
|
|
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment$c;->a:Lcom/lytefast/flexinput/fragment/PhotosFragment;
|
|
|
|
invoke-virtual {v0}, Lcom/lytefast/flexinput/fragment/PhotosFragment;->getRecyclerView$flexinput_release()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Landroidx/recyclerview/widget/RecyclerView;->invalidateItemDecorations()V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-static {}, Ly/u/b/j;->throwNpe()V
|
|
|
|
throw v1
|
|
|
|
:cond_1
|
|
invoke-static {}, Ly/u/b/j;->throwNpe()V
|
|
|
|
throw v1
|
|
|
|
:cond_2
|
|
invoke-static {}, Ly/u/b/j;->throwNpe()V
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public b()V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/PhotosFragment$c;->a:Lcom/lytefast/flexinput/fragment/PhotosFragment;
|
|
|
|
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/lytefast/flexinput/R$g;->files_permission_reason:I
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/widget/Toast;->show()V
|
|
|
|
return-void
|
|
.end method
|