You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
multiple additions and fixes for the Java APIs
Stuff needed for WhatsApp support
This commit is contained in:
12
src/api-impl/android/telephony/PhoneNumberUtils.java
Normal file
12
src/api-impl/android/telephony/PhoneNumberUtils.java
Normal file
@@ -0,0 +1,12 @@
|
||||
package android.telephony;
|
||||
|
||||
public class PhoneNumberUtils {
|
||||
|
||||
public static boolean isNonSeparator(char c) {
|
||||
return c != ' ' && c != '\t' && c != '\n' && c != '\r' && c != '-';
|
||||
}
|
||||
|
||||
public static boolean isGlobalPhoneNumber(String phoneNumber) {
|
||||
return phoneNumber.startsWith("+") || phoneNumber.startsWith("00");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user