Fix OsMo
This commit is contained in:
parent
09dda64b83
commit
c6730a35ce
1 changed files with 2 additions and 14 deletions
|
@ -325,13 +325,7 @@ public class OsMoGroups implements OsMoReactor, OsmoTrackerListener {
|
|||
} else {
|
||||
mainGroup.users.remove(gid);
|
||||
storage.save();
|
||||
if (obj != null) {
|
||||
String errorDescription = obj
|
||||
.optString("error_description");
|
||||
if (!TextUtils.isEmpty(errorDescription)) {
|
||||
app.showToastMessage(errorDescription);
|
||||
}
|
||||
} else {
|
||||
if (obj == null) {
|
||||
app.showToastMessage(app.getString(R.string.osmo_device_not_found));
|
||||
}
|
||||
}
|
||||
|
@ -345,13 +339,7 @@ public class OsMoGroups implements OsMoReactor, OsmoTrackerListener {
|
|||
storage.save();
|
||||
}
|
||||
if (!OK.equals(data)) {
|
||||
if (obj != null) {
|
||||
String errorDescription = obj
|
||||
.optString("error_description");
|
||||
if (!TextUtils.isEmpty(errorDescription)) {
|
||||
app.showToastMessage(errorDescription);
|
||||
}
|
||||
} else {
|
||||
if (obj == null) {
|
||||
app.showToastMessage(app.getString(R.string.osmo_device_not_found));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue