copy the settings collections to avoid them overwriting themselves during LeaderboardPanel.updateSettings

Change-Id: Iad76b1fafafb5f39391744a276ee0ed95af43f95
This commit is contained in:
Axel Uhl committed 2016-07-24 00:15:09 +02:00
1 parent 55e5c77d7e
commit e062301155
9 files changed
+70 -32

No files matched your search

@@ -504,4 +504,14 @@ public class Util {
addAll(visibleCourseAreas, list);
return list;
}
public static <T> List<T> cloneListOrNull(List<T> list) {
final List<T> result;
if (list == null) {
result = null;
} else {
result = new ArrayList<T>(list);
}
return result;
}
}