use of flying.grub.tamtime.data.map.Line in project TamTime by flyingrub.
the class FavoriteStopLine method getFromPref.
private void getFromPref() {
SharedPreferences defaultSharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);
favoriteStopLine = new ArrayList<>();
for (String info : defaultSharedPreferences.getStringSet(TAG, new HashSet<String>())) {
String[] infos = info.split("<>");
StopZone s = Data.getData().getMap().getStopZoneById(Integer.parseInt(infos[0]));
Line l = Data.getData().getMap().getLineByNum(Integer.parseInt(infos[1]));
favoriteStopLine.add(new LineStop(s, l));
}
}
Aggregations