mirror of
https://github.com/nextcloud/android.git
synced 2024-11-22 13:15:35 +03:00
Merge pull request #9462 from nextcloud/expandSendShareDialog
Expand send share dialog when in landscape mode
This commit is contained in:
commit
ad5c73f5ea
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue