Expand send share dialog when in landscape mode

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2021-12-06 12:45:45 +01:00
parent b3b1b8dbc0
commit 9e1001a53c
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -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);