|
|
@@ -13,6 +13,8 @@ import android.widget.LinearLayout;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.kfzs.duanduan.ActDownloadMgr;
|
|
|
+import com.kfzs.duanduan.event.BigEvent;
|
|
|
+import com.kfzs.duanduan.view.DialogStorageLow;
|
|
|
import com.sheep.gamegroup.absBase.BaseActivity;
|
|
|
import com.sheep.gamegroup.model.entity.BaseMessage;
|
|
|
import com.sheep.gamegroup.model.entity.GridViewEntity;
|
|
|
@@ -27,6 +29,9 @@ import com.sheep.jiuyan.samllsheep.SheepApp;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.G;
|
|
|
import com.sheep.jiuyan.samllsheep.utils.TitleBarUtils;
|
|
|
|
|
|
+import org.greenrobot.eventbus.EventBus;
|
|
|
+import org.greenrobot.eventbus.Subscribe;
|
|
|
+
|
|
|
import java.io.Serializable;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
@@ -77,6 +82,7 @@ public class TryMakeMoneyact extends BaseActivity {
|
|
|
@Override
|
|
|
public void initView() {
|
|
|
activity = this;
|
|
|
+ EventBus.getDefault().register(activity);
|
|
|
is_succession = getIntent()
|
|
|
.getIntExtra(
|
|
|
"is_succession", 0);
|
|
|
@@ -91,6 +97,8 @@ public class TryMakeMoneyact extends BaseActivity {
|
|
|
.setRightImgBotton(activity, R.drawable.index_download, new View.OnClickListener() {
|
|
|
@Override
|
|
|
public void onClick(View view) {
|
|
|
+ TitleBarUtils.getInstance()
|
|
|
+ .setRightRedPoint(activity, View.GONE);
|
|
|
startActivity(new Intent(TryMakeMoneyact.this, ActDownloadMgr.class));
|
|
|
UMConfigUtils.onEvent(UMConfigUtils.Event.GAME_DOWNLOAD_MANAGER);
|
|
|
}
|
|
|
@@ -229,4 +237,25 @@ public class TryMakeMoneyact extends BaseActivity {
|
|
|
}
|
|
|
tabGridviewAdp.notifyDataSetChanged();
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ protected void onDestroy() {
|
|
|
+ super.onDestroy();
|
|
|
+ EventBus.getDefault().unregister(this);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 主要的事件广播接收更新处理
|
|
|
+ *
|
|
|
+ * @param event
|
|
|
+ */
|
|
|
+ @Subscribe
|
|
|
+ public void onEventMainThread(BigEvent event) {
|
|
|
+ switch (event.getEventTypes()) {
|
|
|
+ case TIPS_DOWN_ICON:
|
|
|
+ TitleBarUtils.getInstance()
|
|
|
+ .setRightRedPoint(activity, View.VISIBLE);
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|