From dd5d347a7bcc50682728bbe84ea6d0654a191794 Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Thu, 19 Aug 2021 12:00:28 +0200 Subject: [PATCH] expand privacy settings bottom sheet in landscape mode Signed-off-by: Marcel Hibbe --- .../main/java/com/nextcloud/talk/ui/dialog/ScopeDialog.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/java/com/nextcloud/talk/ui/dialog/ScopeDialog.kt b/app/src/main/java/com/nextcloud/talk/ui/dialog/ScopeDialog.kt index d573aa255..a87d926a3 100644 --- a/app/src/main/java/com/nextcloud/talk/ui/dialog/ScopeDialog.kt +++ b/app/src/main/java/com/nextcloud/talk/ui/dialog/ScopeDialog.kt @@ -25,6 +25,7 @@ import android.os.Bundle import android.view.View import android.view.ViewGroup import android.widget.LinearLayout +import com.google.android.material.bottomsheet.BottomSheetBehavior import com.google.android.material.bottomsheet.BottomSheetDialog import com.nextcloud.talk.R import com.nextcloud.talk.controllers.ProfileController @@ -68,4 +69,11 @@ class ScopeDialog( dismiss() } } + + override fun onStart() { + super.onStart() + val bottomSheet = findViewById(R.id.design_bottom_sheet) + val behavior = BottomSheetBehavior.from(bottomSheet as View) + behavior.state = BottomSheetBehavior.STATE_EXPANDED + } }