|
|
@@ -100,7 +100,7 @@ public class FgtMyGameList extends BaseListFragment6<MyGame> {
|
|
|
};
|
|
|
baseQuickAdapter.setOnItemClickListener((adapter, view, position) -> {
|
|
|
MyGame item = ListUtil.getItem(apiRefresh.getList(), position);
|
|
|
- if(item != null)
|
|
|
+ if (item != null)
|
|
|
Jump2View.getInstance().goFindGame(getActivity(), item.getApplication());
|
|
|
});
|
|
|
return baseQuickAdapter;
|
|
|
@@ -123,10 +123,11 @@ public class FgtMyGameList extends BaseListFragment6<MyGame> {
|
|
|
findApp.getFindAppHelper().updateReservationView(activity, findApp, textView);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
private AbsGetDownloadListener absGetDownloadListener = new AbsGetDownloadListener(true) {
|
|
|
@Override
|
|
|
public String getDownloadUrl(String packageName) {
|
|
|
- Applications item = applicationMap.get(packageName);
|
|
|
+ Applications item = applicationMap.get(packageName);
|
|
|
return item != null ? item.getDownload_url() : null;
|
|
|
}
|
|
|
|
|
|
@@ -142,7 +143,7 @@ public class FgtMyGameList extends BaseListFragment6<MyGame> {
|
|
|
|
|
|
@Override
|
|
|
public DownloadHelper getDownloadHelper(String downloadUrl) {
|
|
|
- Applications item = applicationMap.get(downloadUrl);
|
|
|
+ Applications item = applicationMap.get(downloadUrl);
|
|
|
return item != null ? item.getDownloadHelper() : null;
|
|
|
}
|
|
|
};
|
|
|
@@ -160,12 +161,12 @@ public class FgtMyGameList extends BaseListFragment6<MyGame> {
|
|
|
@Override
|
|
|
public void initView() {
|
|
|
super.initView();
|
|
|
- EventBus.getDefault().register(this);
|
|
|
+ ViewUtil.register(this);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void onDestroy() {
|
|
|
super.onDestroy();
|
|
|
- EventBus.getDefault().unregister(this);
|
|
|
+ ViewUtil.unregister(this);
|
|
|
}
|
|
|
}
|