mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-23 13:35:33 +03:00
properly parse encryption/favorite flags
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
969483d66a
commit
1d734485bb
2 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ public class NCEncrypted implements Property {
|
|||
try {
|
||||
String text = XmlUtils.INSTANCE.readText(xmlPullParser);
|
||||
if (!TextUtils.isEmpty(text)) {
|
||||
return new NCEncrypted(Boolean.parseBoolean(text));
|
||||
return new NCEncrypted("1".equals(text));
|
||||
}
|
||||
} catch (IOException | XmlPullParserException e) {
|
||||
Log.e("NCEncrypted", "failed to create property", e);
|
||||
|
|
|
@ -61,7 +61,7 @@ public class OCFavorite implements Property {
|
|||
try {
|
||||
String text = XmlUtils.INSTANCE.readText(xmlPullParser);
|
||||
if (!TextUtils.isEmpty(text)) {
|
||||
return new OCFavorite(Boolean.parseBoolean(text));
|
||||
return new OCFavorite("1".equals(text));
|
||||
}
|
||||
} catch (IOException | XmlPullParserException e) {
|
||||
Log.e("OCFavorite", "failed to create property", e);
|
||||
|
|
Loading…
Reference in a new issue