diff --git a/component/common/src/main/java/one/nem/lacerta/component/common/LacertaSelectDirDialog.java b/component/common/src/main/java/one/nem/lacerta/component/common/LacertaSelectDirDialog.java index 50b32166..a43e2724 100644 --- a/component/common/src/main/java/one/nem/lacerta/component/common/LacertaSelectDirDialog.java +++ b/component/common/src/main/java/one/nem/lacerta/component/common/LacertaSelectDirDialog.java @@ -5,17 +5,12 @@ import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.widget.TextView; -import android.widget.Toast; -import androidx.appcompat.widget.Toolbar; import androidx.fragment.app.DialogFragment; -import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import com.google.android.material.dialog.MaterialAlertDialogBuilder; -import org.w3c.dom.Text; - import javax.inject.Inject; import dagger.hilt.android.AndroidEntryPoint; @@ -54,7 +49,7 @@ public class LacertaSelectDirDialog extends DialogFragment { this.recyclerView = view.findViewById(R.id.select_dir_recycler_view); this.current_dir_text_view = view.findViewById(R.id.current_dir_text_view); - this.adapter = new SelectDirDialogItemAdapter(new LacertaSelectDirDialogEventListener() { + this.adapter = new SelectDirDialogItemAdapter(new LacertaSelectDirDialogInternalEventListener() { @Override public void onDirSelected(String name, String itemId) { showRecyclerViewItem(itemId); diff --git a/component/common/src/main/java/one/nem/lacerta/component/common/LacertaSelectDirDialogEventListener.java b/component/common/src/main/java/one/nem/lacerta/component/common/LacertaSelectDirDialogInternalEventListener.java similarity index 68% rename from component/common/src/main/java/one/nem/lacerta/component/common/LacertaSelectDirDialogEventListener.java rename to component/common/src/main/java/one/nem/lacerta/component/common/LacertaSelectDirDialogInternalEventListener.java index 31954b32..b27b7b6d 100644 --- a/component/common/src/main/java/one/nem/lacerta/component/common/LacertaSelectDirDialogEventListener.java +++ b/component/common/src/main/java/one/nem/lacerta/component/common/LacertaSelectDirDialogInternalEventListener.java @@ -1,6 +1,6 @@ package one.nem.lacerta.component.common; -public interface LacertaSelectDirDialogEventListener { +public interface LacertaSelectDirDialogInternalEventListener { void onDirSelected(String name, String itemId); void onBackSelected(String parentId); } diff --git a/component/common/src/main/java/one/nem/lacerta/component/common/SelectDirDialogItemAdapter.java b/component/common/src/main/java/one/nem/lacerta/component/common/SelectDirDialogItemAdapter.java index f6fd1a06..439cb717 100644 --- a/component/common/src/main/java/one/nem/lacerta/component/common/SelectDirDialogItemAdapter.java +++ b/component/common/src/main/java/one/nem/lacerta/component/common/SelectDirDialogItemAdapter.java @@ -1,6 +1,5 @@ package one.nem.lacerta.component.common; -import android.media.Image; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -10,8 +9,6 @@ import android.widget.TextView; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; -import java.util.ArrayList; - import one.nem.lacerta.model.LibraryItemPage; import one.nem.lacerta.model.ListItem; import one.nem.lacerta.model.ListItemType; @@ -20,9 +17,9 @@ public class SelectDirDialogItemAdapter extends RecyclerView.Adapter