Fix empty groups in downloads

This commit is contained in:
Alexey Kulish 2015-10-21 11:11:57 +03:00
parent de64a0ba8c
commit 97eaa00e66

View file

@ -1,6 +1,5 @@
package net.osmand.plus.download.ui;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.os.Bundle;
@ -102,10 +101,15 @@ public class DownloadResourceGroupFragment extends DialogFragment implements Dow
listAdapter = new DownloadResourceGroupAdapter(activity);
listView.setAdapter(listAdapter);
reloadData();
return view;
}
@Override
public void onResume() {
super.onResume();
reloadData();
}
private void reloadData() {
DownloadResources indexes = activity.getDownloadThread().getIndexes();
group = indexes.getGroupById(groupId);