diff --git a/app/src/main/java/com/example/cosmosclient/app/Cosmos.java b/app/src/main/java/com/example/cosmosclient/app/Cosmos.java index ac5e45a..d050520 100644 --- a/app/src/main/java/com/example/cosmosclient/app/Cosmos.java +++ b/app/src/main/java/com/example/cosmosclient/app/Cosmos.java @@ -9,6 +9,7 @@ import com.example.cosmosclient.entities.Group; import android.content.SharedPreferences; +import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; @@ -18,6 +19,7 @@ private HashMap groups = new HashMap<>(); private String uId=null; private HashMap areaInfo = new HashMap<>(); + private ArrayList areaInfoKey= new ArrayList<>(); private String TAG = Cosmos.class.getSimpleName(); public Cosmos() { @@ -153,4 +155,11 @@ return areaInfo.get(areaId); } + public ArrayList AreaInfoGetKey(){ + for(int key : areaInfo.keySet()){ + areaInfoKey.add(key); + } + return areaInfoKey; + } + }