From b2d85fa7c79a3b444f2c9306cf5af3311d95415f Mon Sep 17 00:00:00 2001 From: Defend Date: Sun, 19 Feb 2017 23:18:56 +0300 Subject: [PATCH] Little fix for order of feed news. --- .../main/java/ru/defend/defdevteam/tstu/NewsItemList.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/ru/defend/defdevteam/tstu/NewsItemList.java b/app/src/main/java/ru/defend/defdevteam/tstu/NewsItemList.java index 530bd1c..b917146 100644 --- a/app/src/main/java/ru/defend/defdevteam/tstu/NewsItemList.java +++ b/app/src/main/java/ru/defend/defdevteam/tstu/NewsItemList.java @@ -4,8 +4,8 @@ import android.os.Build; import android.util.Log; import android.view.View; -import java.util.ArrayList; import java.util.HashMap; +import java.util.LinkedHashMap; import java.util.Map; /** @@ -13,10 +13,11 @@ import java.util.Map; */ public class NewsItemList { - private HashMap hashMap; + private LinkedHashMap hashMap; + NewsItemList() { - hashMap = new HashMap<>(); + hashMap = new LinkedHashMap<>(); } public NewsItemGroup[] toArray() {