インタフェースリネーム

This commit is contained in:
ろむねこ 2024-01-25 15:03:12 +09:00
parent 44edd1c23e
commit 6b44435656
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168
3 changed files with 4 additions and 12 deletions

View File

@ -5,17 +5,12 @@ import android.os.Bundle;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.widget.Toolbar;
import androidx.fragment.app.DialogFragment; import androidx.fragment.app.DialogFragment;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import com.google.android.material.dialog.MaterialAlertDialogBuilder; import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import org.w3c.dom.Text;
import javax.inject.Inject; import javax.inject.Inject;
import dagger.hilt.android.AndroidEntryPoint; 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.recyclerView = view.findViewById(R.id.select_dir_recycler_view);
this.current_dir_text_view = view.findViewById(R.id.current_dir_text_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 @Override
public void onDirSelected(String name, String itemId) { public void onDirSelected(String name, String itemId) {
showRecyclerViewItem(itemId); showRecyclerViewItem(itemId);

View File

@ -1,6 +1,6 @@
package one.nem.lacerta.component.common; package one.nem.lacerta.component.common;
public interface LacertaSelectDirDialogEventListener { public interface LacertaSelectDirDialogInternalEventListener {
void onDirSelected(String name, String itemId); void onDirSelected(String name, String itemId);
void onBackSelected(String parentId); void onBackSelected(String parentId);
} }

View File

@ -1,6 +1,5 @@
package one.nem.lacerta.component.common; package one.nem.lacerta.component.common;
import android.media.Image;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
@ -10,8 +9,6 @@ import android.widget.TextView;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import java.util.ArrayList;
import one.nem.lacerta.model.LibraryItemPage; import one.nem.lacerta.model.LibraryItemPage;
import one.nem.lacerta.model.ListItem; import one.nem.lacerta.model.ListItem;
import one.nem.lacerta.model.ListItemType; import one.nem.lacerta.model.ListItemType;
@ -20,9 +17,9 @@ public class SelectDirDialogItemAdapter extends RecyclerView.Adapter<SelectDirDi
private LibraryItemPage libraryItemPage; private LibraryItemPage libraryItemPage;
LacertaSelectDirDialogEventListener listener; LacertaSelectDirDialogInternalEventListener listener;
public SelectDirDialogItemAdapter(LacertaSelectDirDialogEventListener listener) { public SelectDirDialogItemAdapter(LacertaSelectDirDialogInternalEventListener listener) {
this.listener = listener; this.listener = listener;
} }