use correct click UI element for create folder

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2020-12-04 16:01:32 +01:00
parent d0f4a16664
commit 3cb3442c8f
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -69,7 +69,6 @@ public class OCFileListBottomSheetDialog extends BottomSheetDialog {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final View view = getLayoutInflater().inflate(R.layout.file_list_actions_bottom_sheet_fragment, null);
binding = FileListActionsBottomSheetFragmentBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
@ -155,7 +154,8 @@ public class OCFileListBottomSheetDialog extends BottomSheetDialog {
setupClickListener();
setOnShowListener(d ->
BottomSheetBehavior.from((View) view.getParent()).setPeekHeight(view.getMeasuredHeight())
BottomSheetBehavior.from((View) binding.getRoot().getParent())
.setPeekHeight(binding.getRoot().getMeasuredHeight())
);
}
@ -165,7 +165,7 @@ public class OCFileListBottomSheetDialog extends BottomSheetDialog {
dismiss();
});
binding.menuIconMkdir.setOnClickListener(v -> {
binding.menuMkdir.setOnClickListener(v -> {
actions.createFolder();
dismiss();
});