Implemented showing whole challenge to user

This commit is contained in:
dankito 2020-05-24 23:49:25 +02:00
parent 11adc132aa
commit af38d68b48
2 changed files with 12 additions and 4 deletions

View File

@ -85,7 +85,8 @@ open class EnterTanDialog : DialogFragment() {
setupTanView(rootView) setupTanView(rootView)
rootView.txtTanDescriptionToShowToUser.text = getString(R.string.dialog_enter_tan_hint_from_bank, tanChallenge.messageToShowToUser.getSpannedFromHtml()) rootView.txtTanDescriptionToShowToUser.text = tanChallenge.messageToShowToUser.getSpannedFromHtml()
rootView.lytTanDescriptionToShowToUser.setMaxHeightInDp(145)
rootView.btnCancel.setOnClickListener { enteringTanDone(null) } rootView.btnCancel.setOnClickListener { enteringTanDone(null) }

View File

@ -87,13 +87,20 @@
/> />
<net.dankito.banking.ui.android.views.MaxHeightScrollView
android:id="@+id/lytTanDescriptionToShowToUser"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<TextView <TextView
android:id="@+id/txtTanDescriptionToShowToUser" android:id="@+id/txtTanDescriptionToShowToUser"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:maxLines="6"
/> />
</net.dankito.banking.ui.android.views.MaxHeightScrollView>
<LinearLayout <LinearLayout
android:orientation="horizontal" android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"