upgrade minSdkVersion to 19

This commit is contained in:
Conny Duck 2018-04-14 13:56:48 +02:00
commit 28a85639ed
4 changed files with 12 additions and 28 deletions

View file

@ -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());