|
|
@ -57,7 +57,10 @@ public class ProjectPopupView extends BottomPopupView { |
|
|
|
super.onCreate(); |
|
|
|
super.onCreate(); |
|
|
|
|
|
|
|
|
|
|
|
recyclerView = findViewById(R.id.ppv_recyclerView); |
|
|
|
recyclerView = findViewById(R.id.ppv_recyclerView); |
|
|
|
data = getProjectList(); |
|
|
|
// 构建data
|
|
|
|
|
|
|
|
data = CollUtil.list(false, BizGlobal.getAvailableProjectMap().values()); |
|
|
|
|
|
|
|
data.sort((e1, e2) -> e2.getCreateDate().compareTo(e1.getCreateDate())); |
|
|
|
|
|
|
|
|
|
|
|
int projectCount = data.size(); |
|
|
|
int projectCount = data.size(); |
|
|
|
|
|
|
|
|
|
|
|
if (data.isEmpty()) { |
|
|
|
if (data.isEmpty()) { |
|
|
@ -110,17 +113,6 @@ public class ProjectPopupView extends BottomPopupView { |
|
|
|
recyclerView.setAdapter(commonAdapter); |
|
|
|
recyclerView.setAdapter(commonAdapter); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void newRecord(Project project) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private List<Project> getProjectList() { |
|
|
|
|
|
|
|
List<Project> list = CollUtil.list(false, BizGlobal.CACHE_PROJECT.values()); |
|
|
|
|
|
|
|
list.sort((e1, e2) -> e2.getCreateDate().compareTo(e1.getCreateDate())); |
|
|
|
|
|
|
|
return list; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void onShow() { |
|
|
|
protected void onShow() { |
|
|
|
super.onShow(); |
|
|
|
super.onShow(); |
|
|
|