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

Commit 998c2702 authored by Abhijith Shastry's avatar Abhijith Shastry
Browse files

Do not permit users to block invalid phone numbers.

BUG: 28376693
Change-Id: I851d47deb8fe41b25b3b3e678ad7c190718ea638
parent b71c70b5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -267,7 +267,8 @@ public class BlockedNumbersActivity extends ListActivity
    @Override
    public void onTextChanged(CharSequence text, int start, int before, int count) {
        if (mBlockButton != null) {
            mBlockButton.setEnabled(!TextUtils.isEmpty(text.toString().trim()));
            mBlockButton.setEnabled(
                    !TextUtils.isEmpty(PhoneNumberUtils.stripSeparators(text.toString())));
        }
    }