|
|
@@ -104,31 +104,34 @@ public class ActMiDong extends BaseActivity {
|
|
|
.reflex(indicator, activity);
|
|
|
AdManager.getInstance(activity).setDownloadListener(new AppDownloadListener() {
|
|
|
@Override
|
|
|
- public void onDownloadStart(int id) {
|
|
|
- LogUtil.println("AdManager", "onDownloadStart", id);
|
|
|
- ACache.get(SheepApp.getInstance()).put(String.format(Locale.CHINA, "%s%d", AdManager.class.getSimpleName(), id), "onDownloadStart");
|
|
|
+ public void onDownloadStart(String s) {
|
|
|
+ LogUtil.println("AdManager", "onDownloadStart", s);
|
|
|
+ ACache.get(SheepApp.getInstance()).put(String.format(Locale.CHINA, "%s%s", AdManager.class.getSimpleName(), s), "onDownloadStart");
|
|
|
EventBus.getDefault().post(BigEvent.get().setEventTypes(EventTypes.REFRESH_MING_DONG));
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void onDownloadFail(int id) {
|
|
|
+ public void onDownloadFail(String id) {
|
|
|
LogUtil.println("AdManager","onDownloadFail", id);
|
|
|
- ACache.get(SheepApp.getInstance()).put(String.format(Locale.CHINA, "%s%d", AdManager.class.getSimpleName(), id), "onDownloadFail");
|
|
|
+ ACache.get(SheepApp.getInstance()).put(String.format(Locale.CHINA, "%s%s", AdManager.class.getSimpleName(), id), "onDownloadFail");
|
|
|
EventBus.getDefault().post(BigEvent.get().setEventTypes(EventTypes.REFRESH_MING_DONG));
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void onDownloadSuccess(int id) {//没有收到回调
|
|
|
+ public void onDownloadSuccess(String id) {//没有收到回调
|
|
|
LogUtil.println("AdManager","onDownloadSuccess", id);
|
|
|
- ACache.get(SheepApp.getInstance()).put(String.format(Locale.CHINA, "%s%d", AdManager.class.getSimpleName(), id), "onDownloadSuccess");
|
|
|
+ ACache.get(SheepApp.getInstance()).put(String.format(Locale.CHINA, "%s%s", AdManager.class.getSimpleName(), id), "onDownloadSuccess");
|
|
|
EventBus.getDefault().post(BigEvent.get().setEventTypes(EventTypes.REFRESH_MING_DONG));
|
|
|
+
|
|
|
}
|
|
|
});
|
|
|
AdManager.getInstance(activity).setRewardListener(new RewardListener() {
|
|
|
@Override
|
|
|
public void doTaskSuccess(String s) {
|
|
|
LogUtil.println("AdManager","onDownloadFail", s);
|
|
|
- ACache.get(SheepApp.getInstance()).put(String.format(Locale.CHINA, "%s%d", AdManager.class.getSimpleName(), s), "doTaskSuccess");
|
|
|
+ ACache.get(SheepApp.getInstance()).put(String.format(Locale.CHINA, "%s%s", AdManager.class.getSimpleName(), s), "doTaskSuccess");
|
|
|
EventBus.getDefault().post(BigEvent.get().setEventTypes(EventTypes.REFRESH_MING_DONG));
|
|
|
|
|
|
}
|
|
|
@@ -136,7 +139,7 @@ public class ActMiDong extends BaseActivity {
|
|
|
@Override
|
|
|
public void doTaskFail(String s) {
|
|
|
LogUtil.println("AdManager","onDownloadFail", s);
|
|
|
- ACache.get(SheepApp.getInstance()).put(String.format(Locale.CHINA, "%s%d", AdManager.class.getSimpleName(), s), "doTaskFail");
|
|
|
+ ACache.get(SheepApp.getInstance()).put(String.format(Locale.CHINA, "%s%s", AdManager.class.getSimpleName(), s), "doTaskFail");
|
|
|
EventBus.getDefault().post(BigEvent.get().setEventTypes(EventTypes.REFRESH_MING_DONG));
|
|
|
|
|
|
}
|