diff --git a/app/src/main/java/info/nightscout/androidaps/utils/alertDialogs/PrefImportSummaryDialog.kt b/app/src/main/java/info/nightscout/androidaps/utils/alertDialogs/PrefImportSummaryDialog.kt index c6f97b7b89..892e162c45 100644 --- a/app/src/main/java/info/nightscout/androidaps/utils/alertDialogs/PrefImportSummaryDialog.kt +++ b/app/src/main/java/info/nightscout/androidaps/utils/alertDialogs/PrefImportSummaryDialog.kt @@ -66,7 +66,7 @@ object PrefImportSummaryDialog { rowLayout.setOnClickListener { val msg = "[${context.getString(metaKey.label)}] ${metaEntry.info}" when (metaEntry.status) { - PrefsStatus.WARN -> ToastUtils.Long.warnToast(context, msg) + PrefsStatus.WARN -> ToastUtils.Long.warnToast(context, msg) PrefsStatus.ERROR -> ToastUtils.Long.errorToast(context, msg) else -> ToastUtils.Long.infoToast(context, msg) } @@ -132,6 +132,9 @@ object PrefImportSummaryDialog { } val dialog = builder.show() + val textView = dialog.findViewById(android.R.id.message) as TextView? + textView!!.textSize = 12f + textView!!.setPadding(10,0,0,0) dialog.setCanceledOnTouchOutside(false) } diff --git a/app/src/main/res/layout/dialog_alert_import_summary.xml b/app/src/main/res/layout/dialog_alert_import_summary.xml index c7d87ec376..0424ab67ea 100644 --- a/app/src/main/res/layout/dialog_alert_import_summary.xml +++ b/app/src/main/res/layout/dialog_alert_import_summary.xml @@ -2,15 +2,15 @@ + android:layout_height="wrap_content"> - - - + diff --git a/core/src/main/res/layout/dialog_alert_custom.xml b/core/src/main/res/layout/dialog_alert_custom.xml index aec585ca43..c7818b902a 100644 --- a/core/src/main/res/layout/dialog_alert_custom.xml +++ b/core/src/main/res/layout/dialog_alert_custom.xml @@ -28,7 +28,7 @@ android:layout_centerInParent="true" android:layout_gravity="center" android:layout_marginStart="2dp" - android:layout_marginEnd="50dp" + android:layout_marginEnd="40dp" android:layout_toEndOf="@id/alertdialog_icon" android:ellipsize="marquee" android:focusable="true"