mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 05:35:39 +03:00
use correct click UI element for create folder
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
d0f4a16664
commit
3cb3442c8f
1 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue