Remove space from number

This commit is contained in:
Mathieu Maret 2012-10-15 16:57:55 +02:00
parent 3cfab63465
commit b4c836d48e

View File

@ -264,6 +264,7 @@ public class MultiSmsSender extends Activity {
//Check if numbers are correct and prepare deliveryId //Check if numbers are correct and prepare deliveryId
for(int i= 0; i< size; i++) { for(int i= 0; i< size; i++) {
String newN = numbers[i].trim(); String newN = numbers[i].trim();
newN = newN.replace(" ", "");
if (!newN.equals("") if (!newN.equals("")
&& PhoneNumberUtils.isWellFormedSmsAddress(newN) && PhoneNumberUtils.isWellFormedSmsAddress(newN)
&& !phoneNumberConform.contains(newN)) { && !phoneNumberConform.contains(newN)) {