Loading presentation/src/main/java/com/moez/QKSMS/feature/blocking/numbers/BlockedNumbersController.kt +3 −3 Original line number Diff line number Diff line Loading @@ -85,15 +85,15 @@ class BlockedNumbersController : QkController<BlockedNumbersView, BlockedNumbers val dialog = AlertDialog.Builder(activity!!, R.style.customAlertDialog) .setView(layout) .setPositiveButton(R.string.blocked_numbers_dialog_block) { _, _ -> if (!layout.input.text.toString().isEmpty()) { if (!layout.input.text.toString().trim().isEmpty()) { saveAddressSubject.onNext(layout.input.text.toString()) } else { Toast.makeText(activity, "Not able to add empty text ! please try again", Toast.LENGTH_LONG).show() Toast.makeText(activity, R.string.not_able_to_add_empty_text, Toast.LENGTH_LONG).show() } } .setNegativeButton(R.string.button_cancel) { _, _ -> } .setOnDismissListener { textWatcher.dispose() } dialog.show(); dialog.show() } } presentation/src/main/res/values/strings.xml +1 −0 Original line number Diff line number Diff line Loading @@ -502,4 +502,5 @@ <string name="rate_summary">Share some love and rate us on Google Play!</string> <string name="rate_okay">OKAY!</string> <string name="rate_dismiss">DISMISS</string> <string name="not_able_to_add_empty_text">Not able to add empty text ! please try again</string> </resources> Loading
presentation/src/main/java/com/moez/QKSMS/feature/blocking/numbers/BlockedNumbersController.kt +3 −3 Original line number Diff line number Diff line Loading @@ -85,15 +85,15 @@ class BlockedNumbersController : QkController<BlockedNumbersView, BlockedNumbers val dialog = AlertDialog.Builder(activity!!, R.style.customAlertDialog) .setView(layout) .setPositiveButton(R.string.blocked_numbers_dialog_block) { _, _ -> if (!layout.input.text.toString().isEmpty()) { if (!layout.input.text.toString().trim().isEmpty()) { saveAddressSubject.onNext(layout.input.text.toString()) } else { Toast.makeText(activity, "Not able to add empty text ! please try again", Toast.LENGTH_LONG).show() Toast.makeText(activity, R.string.not_able_to_add_empty_text, Toast.LENGTH_LONG).show() } } .setNegativeButton(R.string.button_cancel) { _, _ -> } .setOnDismissListener { textWatcher.dispose() } dialog.show(); dialog.show() } }
presentation/src/main/res/values/strings.xml +1 −0 Original line number Diff line number Diff line Loading @@ -502,4 +502,5 @@ <string name="rate_summary">Share some love and rate us on Google Play!</string> <string name="rate_okay">OKAY!</string> <string name="rate_dismiss">DISMISS</string> <string name="not_able_to_add_empty_text">Not able to add empty text ! please try again</string> </resources>