Skip to content

Commit

Permalink
fix custom overlay dialog not scrolling (streetcomplete#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
Helium314 committed Jan 7, 2023
1 parent dcb25e1 commit 61d64d2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import android.view.LayoutInflater
import android.widget.CheckBox
import android.widget.EditText
import android.widget.LinearLayout
import android.widget.ScrollView
import android.widget.TextView
import android.widget.Toast
import androidx.appcompat.app.AlertDialog
Expand Down Expand Up @@ -128,7 +129,7 @@ class OverlaySelectionDialog(context: Context) : AlertDialog(context), KoinCompo
}
d = Builder(c)
.setTitle(R.string.custom_overlay_title)
.setView(linearLayout)
.setView(ScrollView(c).apply { addView(linearLayout) })
.setNegativeButton(android.R.string.cancel, null)
.setPositiveButton(android.R.string.ok) { _, _ ->
prefs.edit {
Expand Down

0 comments on commit 61d64d2

Please sign in to comment.