~singpolyma/cheogram-android

2924ec071f62fc3446abd428a1c40fdb9d355dd5 — root21 2 years ago 7296a11
Small fix to address cheogram adding "+1" when making calls from the default dialer. Now only adds "+1" or "+" when necessary.
1 files changed, 3 insertions(+), 1 deletions(-)

M src/cheogram/java/com/cheogram/android/ConnectionService.java
M src/cheogram/java/com/cheogram/android/ConnectionService.java => src/cheogram/java/com/cheogram/android/ConnectionService.java +3 -1
@@ 37,7 37,9 @@ public class ConnectionService extends android.telecom.ConnectionService {
		// TODO: jabber:iq:gateway
		String tel = request.getAddress().getSchemeSpecificPart().
		           replaceAll("[^\\+0-9]", "");
		if (!tel.startsWith("+1")) {
		if (tel.startsWith("1")) {
			tel = "+" + tel;
		} else if (!tel.startsWith("+")) {
			tel = "+1" + tel;
		}