|
|
|
|
@ -130,7 +130,7 @@ public class DetailActivity extends BaseActivity implements CustomKeyDownVod.Lis |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void cast(Activity activity, History history) { |
|
|
|
|
start(activity, history.getSiteKey(), history.getVodId(), history.getVodName(), true, true); |
|
|
|
|
start(activity, history.getSiteKey(), history.getVodId(), history.getVodName(), null, true, true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void push(Activity activity, String url, boolean clear) { |
|
|
|
|
@ -145,15 +145,24 @@ public class DetailActivity extends BaseActivity implements CustomKeyDownVod.Lis |
|
|
|
|
start(activity, key, id, name, false); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void start(Activity activity, String key, String id, String name, String mark) { |
|
|
|
|
start(activity, key, id, name, mark, false); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void start(Activity activity, String key, String id, String name, boolean clear) { |
|
|
|
|
start(activity, key, id, name, clear, false); |
|
|
|
|
start(activity, key, id, name, null, clear, false); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void start(Activity activity, String key, String id, String name, String mark, boolean clear) { |
|
|
|
|
start(activity, key, id, name, mark, clear, false); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void start(Activity activity, String key, String id, String name, boolean clear, boolean cast) { |
|
|
|
|
public static void start(Activity activity, String key, String id, String name, String mark, boolean clear, boolean cast) { |
|
|
|
|
Intent intent = new Intent(activity, DetailActivity.class); |
|
|
|
|
if (clear) intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); |
|
|
|
|
intent.putExtra("cast", cast); |
|
|
|
|
intent.putExtra("name", name); |
|
|
|
|
intent.putExtra("mark", mark); |
|
|
|
|
intent.putExtra("key", key); |
|
|
|
|
intent.putExtra("id", id); |
|
|
|
|
activity.startActivityForResult(intent, 1000); |
|
|
|
|
@ -167,6 +176,10 @@ public class DetailActivity extends BaseActivity implements CustomKeyDownVod.Lis |
|
|
|
|
return getIntent().getStringExtra("name"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private String getMark() { |
|
|
|
|
return getIntent().getStringExtra("mark"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private String getKey() { |
|
|
|
|
return getIntent().getStringExtra("key"); |
|
|
|
|
} |
|
|
|
|
@ -811,6 +824,7 @@ public class DetailActivity extends BaseActivity implements CustomKeyDownVod.Lis |
|
|
|
|
private History createHistory(Vod item) { |
|
|
|
|
History history = new History(); |
|
|
|
|
history.setKey(getHistoryKey()); |
|
|
|
|
history.setVodRemarks(getMark()); |
|
|
|
|
history.setCid(ApiConfig.getCid()); |
|
|
|
|
history.setVodPic(item.getVodPic()); |
|
|
|
|
history.setVodName(item.getVodName()); |
|
|
|
|
|