リファクタリング

This commit is contained in:
r-ca 2024-01-27 16:22:34 +09:00
parent 603a758ab6
commit 9ba3c224c4
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -182,8 +182,6 @@ public class ViewerListFragment extends Fragment {
lacertaSelectRevDialog.setListener(new LacertaSelectRevDialogListener() { lacertaSelectRevDialog.setListener(new LacertaSelectRevDialogListener() {
@Override @Override
public void onItemSelected(String revId) { public void onItemSelected(String revId) {
// Do something
Toast.makeText(getContext(), "Selected revId: " + revId, Toast.LENGTH_SHORT).show();
getParentFragmentManager().beginTransaction() getParentFragmentManager().beginTransaction()
.replace(R.id.nav_host_fragment, ViewerListFragment.newInstance(documentId, documentName, revisionId)) .replace(R.id.nav_host_fragment, ViewerListFragment.newInstance(documentId, documentName, revisionId))
.commit(); .commit();
@ -191,8 +189,7 @@ public class ViewerListFragment extends Fragment {
@Override @Override
public void onDialogCanceled() { public void onDialogCanceled() {
// Do something logger.debug(TAG, "Canceled");
Toast.makeText(getContext(), "Canceled", Toast.LENGTH_SHORT).show();
} }
}); });
lacertaSelectRevDialog.show(getParentFragmentManager(), "select_rev_dialog"); lacertaSelectRevDialog.show(getParentFragmentManager(), "select_rev_dialog");
@ -242,7 +239,6 @@ public class ViewerListFragment extends Fragment {
builder.show(); builder.show();
return true; return true;
} else if (item.getItemId() == R.id.action_move) { } else if (item.getItemId() == R.id.action_move) {
// Toast.makeText(getContext(), "Work in progress", Toast.LENGTH_SHORT).show();
LacertaSelectDirDialog lacertaSelectDirDialog = new LacertaSelectDirDialog(); LacertaSelectDirDialog lacertaSelectDirDialog = new LacertaSelectDirDialog();
lacertaSelectDirDialog.setListener(new LacertaSelectDirDialogListener() { lacertaSelectDirDialog.setListener(new LacertaSelectDirDialogListener() {
@Override @Override