From 9e1001a53ca37188d44931ef6f502b6797faf099 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Mon, 6 Dec 2021 12:45:45 +0100 Subject: [PATCH] Expand send share dialog when in landscape mode Signed-off-by: tobiasKaminsky --- .../com/owncloud/android/ui/dialog/SendShareDialog.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/com/owncloud/android/ui/dialog/SendShareDialog.java b/src/main/java/com/owncloud/android/ui/dialog/SendShareDialog.java index 3fa5391e27..14db4f1bf2 100644 --- a/src/main/java/com/owncloud/android/ui/dialog/SendShareDialog.java +++ b/src/main/java/com/owncloud/android/ui/dialog/SendShareDialog.java @@ -13,6 +13,7 @@ import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; +import com.google.android.material.bottomsheet.BottomSheetBehavior; import com.google.android.material.bottomsheet.BottomSheetDialogFragment; import com.google.android.material.snackbar.Snackbar; import com.owncloud.android.R; @@ -171,6 +172,12 @@ public class SendShareDialog extends BottomSheetDialogFragment { return view; } + @Override + public void onStart() { + super.onStart(); + BottomSheetBehavior.from((View) requireView().getParent()).setState(BottomSheetBehavior.STATE_EXPANDED); + } + private void shareByLink() { if (file.isSharedViaLink()) { ((FileActivity) getActivity()).getFileOperationsHelper().getFileWithLink(file);