Title or not, platform default
This commit is contained in:
@@ -27,10 +27,6 @@ class EBegFragment : DialogFragment(), PurchasesUpdatedListener, BillingClientSt
|
|||||||
private const val KEY_MESSAGE = "message"
|
private const val KEY_MESSAGE = "message"
|
||||||
}
|
}
|
||||||
|
|
||||||
init {
|
|
||||||
setStyle(DialogFragment.STYLE_NO_TITLE, 0)
|
|
||||||
}
|
|
||||||
|
|
||||||
class MessageDialogFragment : DialogFragment() {
|
class MessageDialogFragment : DialogFragment() {
|
||||||
override fun onCreateDialog(savedInstanceState: Bundle?) = AlertDialog.Builder(requireContext()).apply {
|
override fun onCreateDialog(savedInstanceState: Bundle?) = AlertDialog.Builder(requireContext()).apply {
|
||||||
val arguments = arguments!!
|
val arguments = arguments!!
|
||||||
@@ -57,6 +53,7 @@ class EBegFragment : DialogFragment(), PurchasesUpdatedListener, BillingClientSt
|
|||||||
inflater.inflate(R.layout.fragment_ebeg, container, false)
|
inflater.inflate(R.layout.fragment_ebeg, container, false)
|
||||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||||
super.onViewCreated(view, savedInstanceState)
|
super.onViewCreated(view, savedInstanceState)
|
||||||
|
dialog!!.setTitle(R.string.settings_misc_donate)
|
||||||
googleSpinner = view.findViewById(R.id.donations__google_android_market_spinner)
|
googleSpinner = view.findViewById(R.id.donations__google_android_market_spinner)
|
||||||
onBillingServiceDisconnected()
|
onBillingServiceDisconnected()
|
||||||
view.findViewById<Button>(R.id.donations__google_android_market_donate_button).setOnClickListener {
|
view.findViewById<Button>(R.id.donations__google_android_market_donate_button).setOnClickListener {
|
||||||
|
|||||||
@@ -14,10 +14,6 @@ abstract class AlertDialogFragment : DialogFragment(), DialogInterface.OnClickLi
|
|||||||
protected abstract fun AlertDialog.Builder.prepare(listener: DialogInterface.OnClickListener)
|
protected abstract fun AlertDialog.Builder.prepare(listener: DialogInterface.OnClickListener)
|
||||||
open val data: Intent? get() = null
|
open val data: Intent? get() = null
|
||||||
|
|
||||||
init {
|
|
||||||
setStyle(STYLE_NO_TITLE, 0)
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onCreateDialog(savedInstanceState: Bundle?): AlertDialog =
|
override fun onCreateDialog(savedInstanceState: Bundle?): AlertDialog =
|
||||||
AlertDialog.Builder(requireContext()).also { it.prepare(this) }.create()
|
AlertDialog.Builder(requireContext()).also { it.prepare(this) }.create()
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,10 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:isScrollContainer="true"
|
android:isScrollContainer="true"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="16dp">
|
android:paddingTop="16dp"
|
||||||
|
android:paddingBottom="16dp"
|
||||||
|
android:paddingLeft="24dp"
|
||||||
|
android:paddingRight="24dp">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|||||||
Reference in New Issue
Block a user