Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4256e1bc authored by narinder Rana's avatar narinder Rana
Browse files

refine code as feedback

parent d3104ea3
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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()
    }

}
+1 −0
Original line number Diff line number Diff line
@@ -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>