|
|
@@ -191,9 +191,11 @@ public class ActGameGroupOrGameDetail extends BaseActivity {
|
|
|
item_gc_game_app_list_rv.setNestedScrollingEnabled(false);
|
|
|
item_gc_game_app_list_rv.setLayoutManager(new LinearLayoutManager(SheepApp.getInstance()));
|
|
|
if(!ListUtil.isEmpty(gameGroup.getApplications())) {
|
|
|
- for (Applications item : gameGroup.getApplications()) {
|
|
|
- applicationsMap.put(item.getDownload_link(), item);
|
|
|
- applicationsMap.put(item.getPackage_name(), item);
|
|
|
+ if(AdpGameGroupGameCompare.canDownload) {
|
|
|
+ for (Applications item : gameGroup.getApplications()) {
|
|
|
+ applicationsMap.put(item.getDownload_link(), item);
|
|
|
+ applicationsMap.put(item.getPackage_name(), item);
|
|
|
+ }
|
|
|
}
|
|
|
BaseQuickAdapter baseQuickAdapter = new AdpGameGroupGameCompare(gameGroup.getApplications());
|
|
|
baseQuickAdapter.bindToRecyclerView(item_gc_game_app_list_rv);
|
|
|
@@ -461,12 +463,12 @@ public class ActGameGroupOrGameDetail extends BaseActivity {
|
|
|
|
|
|
@Override
|
|
|
public TextView getTextView2(String packageName) {
|
|
|
- return recyclerView.findViewWithTag(PUBLIC_TAG_PREFIX_TEXTVIEW_LIST + getDownloadUrl(packageName));
|
|
|
+ return item_gc_game_app_list_rv.findViewWithTag(PUBLIC_TAG_PREFIX_TEXTVIEW_LIST + getDownloadUrl(packageName));
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public TextView getTextView(String downloadUrl) {
|
|
|
- return recyclerView.findViewWithTag(PUBLIC_TAG_PREFIX_TEXTVIEW_LIST + downloadUrl);
|
|
|
+ return item_gc_game_app_list_rv.findViewWithTag(PUBLIC_TAG_PREFIX_TEXTVIEW_LIST + downloadUrl);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -478,13 +480,15 @@ public class ActGameGroupOrGameDetail extends BaseActivity {
|
|
|
@Subscribe
|
|
|
public void onEventMainThread(Intent intent) {
|
|
|
absGetDownloadListener.onEventMainThread(intent);
|
|
|
- absGetDownloadListener2.onEventMainThread(intent);
|
|
|
+ if(AdpGameGroupGameCompare.canDownload)
|
|
|
+ absGetDownloadListener2.onEventMainThread(intent);
|
|
|
}
|
|
|
|
|
|
@Subscribe
|
|
|
public void onEventMainThread(BigEvent event) {
|
|
|
absGetDownloadListener.onEventMainThread(event);
|
|
|
- absGetDownloadListener2.onEventMainThread(event);
|
|
|
+ if(AdpGameGroupGameCompare.canDownload)
|
|
|
+ absGetDownloadListener2.onEventMainThread(event);
|
|
|
}
|
|
|
|
|
|
@Override
|