|
|
@@ -201,6 +201,7 @@ import me.iwf.photopicker.PhotoPreview;
|
|
|
import okhttp3.Call;
|
|
|
import rx.functions.Action1;
|
|
|
|
|
|
+import static com.sheep.gamegroup.module.game.activity.ActGameGroupOrGameDetail.AUTO_DOWNLOAD;
|
|
|
import static com.sheep.gamegroup.util.UMConfigUtils.Event.ASK_MAKE_MONEY_INVITATION;
|
|
|
import static com.sheep.gamegroup.util.UMConfigUtils.Event.FIND_ITEM;
|
|
|
import static com.sheep.gamegroup.util.UMConfigUtils.Event.GAME_DOWNLOAD_WELFARE_LIST;
|
|
|
@@ -1860,11 +1861,20 @@ public class Jump2View {
|
|
|
* @param item
|
|
|
*/
|
|
|
public void goEntity(Applications item) {
|
|
|
+ goEntity(item, false);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 发现模块--游戏详情界面
|
|
|
+ *
|
|
|
+ * @param item
|
|
|
+ */
|
|
|
+ public void goEntity(Applications item, boolean isAutoDownload) {
|
|
|
if(item == null){
|
|
|
G.showToast(R.string.please_contact_customer_service);
|
|
|
return;
|
|
|
}
|
|
|
- goPlayGameDetail(item.getId());
|
|
|
+ goPlayGameDetail(item.getId(), isAutoDownload);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -2861,11 +2871,19 @@ public class Jump2View {
|
|
|
* 小绵羊3.4.10新增 -- 游戏组游戏详情 界面
|
|
|
*/
|
|
|
public void goPlayGameDetail(int id) {
|
|
|
+ goPlayGameDetail(id, false);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 小绵羊3.4.10新增 -- 游戏组游戏详情 界面
|
|
|
+ */
|
|
|
+ public void goPlayGameDetail(int id, boolean isAutoDownload) {
|
|
|
GAME_PLAY_GAME_DETAIL.onEvent();
|
|
|
if (id > 0){
|
|
|
Activity activity = SheepApp.getInstance().getCurrentActivity();
|
|
|
Intent intent = new Intent(activity, ActGameGroupOrGameDetail.class);
|
|
|
intent.putExtra("id", id);
|
|
|
+ intent.putExtra(AUTO_DOWNLOAD, isAutoDownload);
|
|
|
activity.startActivity(intent);
|
|
|
} else {
|
|
|
G.showToast(R.string.please_contact_customer_service);
|