upgrade minSdkVersion to 19
This commit is contained in:
parent
5d5c103644
commit
28a85639ed
4 changed files with 12 additions and 28 deletions
|
|
@ -89,21 +89,18 @@ public class NotificationHelper {
|
|||
currentNotifications = new JSONArray();
|
||||
}
|
||||
|
||||
boolean alreadyContains = false;
|
||||
|
||||
for (int i = 0; i < currentNotifications.length(); i++) {
|
||||
try {
|
||||
if (currentNotifications.getString(i).equals(body.getAccount().getName())) {
|
||||
alreadyContains = true;
|
||||
currentNotifications.remove(i);
|
||||
break;
|
||||
}
|
||||
} catch (JSONException e) {
|
||||
Log.d(TAG, Log.getStackTraceString(e));
|
||||
}
|
||||
}
|
||||
|
||||
if (!alreadyContains) {
|
||||
currentNotifications.put(body.getAccount().getName());
|
||||
}
|
||||
currentNotifications.put(body.getAccount().getName());
|
||||
|
||||
account.setActiveNotifications(currentNotifications.toString());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue