|
|
@@ -50,6 +50,7 @@ import com.sheep.gamegroup.view.adapter.TitleFragmentListAdapter2;
|
|
|
import com.sheep.jiuyan.samllsheep.R;
|
|
|
import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.G;
|
|
|
+import com.sheep.jiuyan.samllsheep.utils.PackageUtil;
|
|
|
|
|
|
import org.afinal.simplecache.ApiKey;
|
|
|
import org.greenrobot.eventbus.EventBus;
|
|
|
@@ -283,8 +284,10 @@ public class ActGameGroupOrGameDetail extends BaseActivity {
|
|
|
fgtGameDetail.loadData(gameEntity);
|
|
|
ViewUtil.setVisibility(gc_game_app_detail_bt3, gameEntity.getApp().hasGameDiscountId());
|
|
|
|
|
|
- if(isAutoDownload){//进行自动下载
|
|
|
- gc_game_app_detail_bt2.performLongClick();
|
|
|
+ if(isAutoDownload){//可以进行自动下载
|
|
|
+ if(!PackageUtil.isAppInstalled(SheepApp.getInstance(), gameEntity.getApp().getPackage_name())) {//未安装的情况才进行下载
|
|
|
+ gc_game_app_detail_bt2.performLongClick();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
//更新评分
|