diff --git a/res/drawable-xhdpi/button_background_default.9.png b/res/drawable-xhdpi/button_background_default.9.png new file mode 100644 index 000000000..c19f88e0b Binary files /dev/null and b/res/drawable-xhdpi/button_background_default.9.png differ diff --git a/res/drawable-xhdpi/button_background_default.png b/res/drawable-xhdpi/button_background_default.png deleted file mode 100644 index 31efad8aa..000000000 Binary files a/res/drawable-xhdpi/button_background_default.png and /dev/null differ diff --git a/res/drawable-xhdpi/button_background_over.9.png b/res/drawable-xhdpi/button_background_over.9.png new file mode 100644 index 000000000..4c66f4a93 Binary files /dev/null and b/res/drawable-xhdpi/button_background_over.9.png differ diff --git a/res/drawable-xhdpi/button_background_over.png b/res/drawable-xhdpi/button_background_over.png deleted file mode 100644 index 44813921c..000000000 Binary files a/res/drawable-xhdpi/button_background_over.png and /dev/null differ diff --git a/res/layout/chatlist_cell.xml b/res/layout/chatlist_cell.xml index 0848bbd95..a3dddc2be 100644 --- a/res/layout/chatlist_cell.xml +++ b/res/layout/chatlist_cell.xml @@ -47,6 +47,7 @@ + android:orientation="horizontal" + android:background="@drawable/toolsbar_background"> + + diff --git a/res/layout/setup_linphone_login.xml b/res/layout/setup_linphone_login.xml index 20697777f..cdf1efaa1 100644 --- a/res/layout/setup_linphone_login.xml +++ b/res/layout/setup_linphone_login.xml @@ -54,7 +54,7 @@ android:background="@drawable/setup_field_background" /> diff --git a/res/layout/setup_wizard.xml b/res/layout/setup_wizard.xml index 2b71e5803..535d5f573 100644 --- a/res/layout/setup_wizard.xml +++ b/res/layout/setup_wizard.xml @@ -128,7 +128,7 @@ diff --git a/src/org/linphone/LinphoneUtils.java b/src/org/linphone/LinphoneUtils.java index f080c300a..8304fd699 100644 --- a/src/org/linphone/LinphoneUtils.java +++ b/src/org/linphone/LinphoneUtils.java @@ -65,11 +65,11 @@ public final class LinphoneUtils { private static boolean preventVolumeBarToDisplay = false; public static boolean isSipAddress(String numberOrAddress) { - return numberOrAddress != null && numberOrAddress.matches("^(sip:)?[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\\.-][a-z0-9]+)*)+\\.[a-z]{2,}$"); + return numberOrAddress != null && numberOrAddress.matches("^(sip:)?(\\+)?[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\\.-][a-z0-9]+)*)+\\.[a-z]{2,}$"); } public static boolean isStrictSipAddress(String numberOrAddress) { - return numberOrAddress != null && numberOrAddress.matches("^sip:[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\\.-][a-z0-9]+)*)+\\.[a-z]{2,}$"); + return numberOrAddress != null && numberOrAddress.matches("^sip:(\\+)?[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\\.-][a-z0-9]+)*)+\\.[a-z]{2,}$"); } public static String getUsernameFromAddress(String address) {