mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +00:00
リファクタリング
This commit is contained in:
parent
603a758ab6
commit
9ba3c224c4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user