File tree Expand file tree Collapse file tree 5 files changed +17
-7
lines changed
java/com/hoc081988/democoroutineschannelresult/ui Expand file tree Collapse file tree 5 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -52,9 +52,12 @@ class DashboardFragment : Fragment() {
5252 .editText!!
5353 .text
5454 ?.toString()
55- .orEmpty(),
55+ ?.takeIf { it.isNotBlank() }
56+ ? : return @setOnClickListener,
5657 )
5758 )
59+
60+ binding.textInputLayout.editText!! .setText(" " )
5861 }
5962 }
6063
Original file line number Diff line number Diff line change @@ -58,9 +58,12 @@ class HomeFragment : Fragment() {
5858 .editText!!
5959 .text
6060 ?.toString()
61- .orEmpty(),
61+ ?.takeIf { it.isNotBlank() }
62+ ? : return @setOnClickListener,
6263 )
6364 )
65+
66+ binding.textInputLayout.editText!! .setText(" " )
6467 }
6568
6669 binding.button2.setOnClickListener {
Original file line number Diff line number Diff line change 3535 android : layout_width =" match_parent"
3636 android : layout_height =" wrap_content"
3737 android : hint =" Type something..."
38- android : maxLines =" 1" />
38+ android : imeOptions =" actionDone"
39+ android : maxLines =" 1"
40+ android : singleLine =" true" />
3941 </com .google.android.material.textfield.TextInputLayout>
4042
4143 <Button
Original file line number Diff line number Diff line change 3535 android : layout_width =" match_parent"
3636 android : layout_height =" wrap_content"
3737 android : hint =" Type something..."
38- android : maxLines =" 1" />
38+ android : imeOptions =" actionDone"
39+ android : maxLines =" 1"
40+ android : singleLine =" true" />
3941 </com .google.android.material.textfield.TextInputLayout>
4042
4143 <Button
Original file line number Diff line number Diff line change 1515
1616 <com .google.android.material.divider.MaterialDivider
1717 android : id =" @+id/divider"
18- app : layout_constraintTop_toTopOf =" parent"
19- app : layout_constraintBottom_toBottomOf =" parent"
2018 android : layout_width =" match_parent"
21- android : layout_height =" 1dp" />
19+ android : layout_height =" 4dp"
20+ app : layout_constraintBottom_toBottomOf =" parent"
21+ app : layout_constraintTop_toTopOf =" parent" />
2222
2323 <androidx .recyclerview.widget.RecyclerView
2424 android : id =" @+id/recycler_dashboard_results"
You can’t perform that action at this time.
0 commit comments