From 8a656f673dfaa71f7891b3d202e2f70788f31aac Mon Sep 17 00:00:00 2001 From: r-ca Date: Sun, 28 Jan 2024 10:34:22 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A1=E3=82=BD=E3=83=83=E3=83=89=E3=83=AA?= =?UTF-8?q?=E3=83=8D=E3=83=BC=E3=83=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/picker/LacertaDirPickerDialog.java | 2 +- .../picker/base/LacertaFilePickerDialogBase.java | 15 +-------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/component/common/src/main/java/one/nem/lacerta/component/common/picker/LacertaDirPickerDialog.java b/component/common/src/main/java/one/nem/lacerta/component/common/picker/LacertaDirPickerDialog.java index 21698e59..683f158a 100644 --- a/component/common/src/main/java/one/nem/lacerta/component/common/picker/LacertaDirPickerDialog.java +++ b/component/common/src/main/java/one/nem/lacerta/component/common/picker/LacertaDirPickerDialog.java @@ -91,7 +91,7 @@ public class LacertaDirPickerDialog extends LacertaFilePickerDialogBase { private void updateList(LacertaFilePickerAdapterBase adapter, String folderId) { lacertaLibrary.getFolderList(folderId).thenAccept(libraryItemPage -> { adapter.setListItems(libraryItemPage); - this.updateList(adapter, libraryItemPage, adapter.getItemCount(), adapter.getCurrentId()); + this.updateListView(adapter, libraryItemPage, adapter.getItemCount(), adapter.getCurrentId()); }); } } diff --git a/component/common/src/main/java/one/nem/lacerta/component/common/picker/base/LacertaFilePickerDialogBase.java b/component/common/src/main/java/one/nem/lacerta/component/common/picker/base/LacertaFilePickerDialogBase.java index d11ecf3f..07ec1ee2 100644 --- a/component/common/src/main/java/one/nem/lacerta/component/common/picker/base/LacertaFilePickerDialogBase.java +++ b/component/common/src/main/java/one/nem/lacerta/component/common/picker/base/LacertaFilePickerDialogBase.java @@ -1,23 +1,10 @@ package one.nem.lacerta.component.common.picker.base; -import android.app.Dialog; -import android.view.LayoutInflater; -import android.view.View; -import android.widget.TextView; - import androidx.fragment.app.DialogFragment; -import com.google.android.material.dialog.MaterialAlertDialogBuilder; - import javax.inject.Inject; -import one.nem.lacerta.component.common.LacertaSelectDirDialog; -import one.nem.lacerta.component.common.R; -import one.nem.lacerta.component.common.SelectDirDialogItemAdapter; -import one.nem.lacerta.data.LacertaLibrary; import one.nem.lacerta.model.LibraryItemPage; -import one.nem.lacerta.model.ListItemType; -import one.nem.lacerta.utils.FeatureSwitch; import one.nem.lacerta.utils.LacertaLogger; public class LacertaFilePickerDialogBase extends DialogFragment { @@ -52,7 +39,7 @@ public class LacertaFilePickerDialogBase extends DialogFragment { } // Methods - protected void updateList(LacertaFilePickerAdapterBase adapter, LibraryItemPage libraryItemPage, int currentCount, String currentDirId) { + protected void updateListView(LacertaFilePickerAdapterBase adapter, LibraryItemPage libraryItemPage, int currentCount, String currentDirId) { if (currentDirId == null) { // Rootが関わる推移 (Rootからの推移) adapter.setListItems(libraryItemPage);