mirror of
https://github.com/etesync/android
synced 2025-08-05 13:25:21 +00:00
Version bump to 0.7.2
* catch illegal SIP addresses (fixes #470) * version bump to 0.7.2
This commit is contained in:
parent
08789bbb2c
commit
35011445e0
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="at.bitfire.davdroid"
|
package="at.bitfire.davdroid"
|
||||||
android:versionCode="56" android:versionName="0.7.1"
|
android:versionCode="57" android:versionName="0.7.2"
|
||||||
android:installLocation="internalOnly">
|
android:installLocation="internalOnly">
|
||||||
|
|
||||||
<uses-sdk
|
<uses-sdk
|
||||||
|
@ -9,7 +9,7 @@ package at.bitfire.davdroid;
|
|||||||
|
|
||||||
public class Constants {
|
public class Constants {
|
||||||
public static final String
|
public static final String
|
||||||
APP_VERSION = "0.7.1",
|
APP_VERSION = "0.7.2",
|
||||||
ACCOUNT_TYPE = "bitfire.at.davdroid",
|
ACCOUNT_TYPE = "bitfire.at.davdroid",
|
||||||
WEB_URL_HELP = "https://davdroid.bitfire.at/configuration?pk_campaign=davdroid-app",
|
WEB_URL_HELP = "https://davdroid.bitfire.at/configuration?pk_campaign=davdroid-app",
|
||||||
WEB_URL_VIEW_LOGS = "https://github.com/bitfireAT/davdroid/wiki/How-to-view-the-logs";
|
WEB_URL_VIEW_LOGS = "https://github.com/bitfireAT/davdroid/wiki/How-to-view-the-logs";
|
||||||
|
@ -578,20 +578,24 @@ public class LocalAddressBook extends LocalCollection<Contact> {
|
|||||||
SipAddress.RAW_CONTACT_ID + "=? AND " + Data.MIMETYPE + "=?",
|
SipAddress.RAW_CONTACT_ID + "=? AND " + Data.MIMETYPE + "=?",
|
||||||
new String[] { String.valueOf(c.getLocalID()), SipAddress.CONTENT_ITEM_TYPE }, null);
|
new String[] { String.valueOf(c.getLocalID()), SipAddress.CONTENT_ITEM_TYPE }, null);
|
||||||
if (cursor != null && cursor.moveToNext()) {
|
if (cursor != null && cursor.moveToNext()) {
|
||||||
Impp impp = new Impp("sip:" + cursor.getString(0));
|
try {
|
||||||
switch (cursor.getInt(1)) {
|
Impp impp = new Impp("sip:" + cursor.getString(0));
|
||||||
case SipAddress.TYPE_HOME:
|
switch (cursor.getInt(1)) {
|
||||||
impp.addType(ImppType.HOME);
|
case SipAddress.TYPE_HOME:
|
||||||
break;
|
impp.addType(ImppType.HOME);
|
||||||
case SipAddress.TYPE_WORK:
|
break;
|
||||||
impp.addType(ImppType.WORK);
|
case SipAddress.TYPE_WORK:
|
||||||
break;
|
impp.addType(ImppType.WORK);
|
||||||
case SipAddress.TYPE_CUSTOM:
|
break;
|
||||||
String customType = cursor.getString(2);
|
case SipAddress.TYPE_CUSTOM:
|
||||||
if (!StringUtils.isEmpty(customType))
|
String customType = cursor.getString(2);
|
||||||
impp.addType(ImppType.get(labelToXName(customType)));
|
if (!StringUtils.isEmpty(customType))
|
||||||
|
impp.addType(ImppType.get(labelToXName(customType)));
|
||||||
|
}
|
||||||
|
c.getImpps().add(impp);
|
||||||
|
} catch(IllegalArgumentException e) {
|
||||||
|
Log.e(TAG, "Illegal SIP URI", e);
|
||||||
}
|
}
|
||||||
c.getImpps().add(impp);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user