1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-12 04:59:27 +01:00

Merge pull request #222 from roidelapluie/fix221

Fix #221 - Cast pair.first as integer
This commit is contained in:
Andreas Shimokawa 2016-02-08 21:32:05 +01:00
commit cdb25f3183

View File

@ -23,7 +23,7 @@ public class LimitedQueue {
public void remove(int id) {
for (Iterator<Pair> iter = list.iterator(); iter.hasNext(); ) {
Pair pair = iter.next();
if (pair.first == id) {
if ((Integer) pair.first == id) {
iter.remove();
}
}