|
|
@@ -1,7 +1,6 @@
|
|
|
package com.sheep.gamegroup.view.activity;
|
|
|
|
|
|
import android.content.Intent;
|
|
|
-import android.net.Uri;
|
|
|
import android.os.Build;
|
|
|
import android.os.Bundle;
|
|
|
import android.support.annotation.Nullable;
|
|
|
@@ -23,6 +22,7 @@ import com.sheep.gamegroup.greendao.download.DownLoadInfo;
|
|
|
import com.sheep.gamegroup.helper.DownloadHelper;
|
|
|
import com.sheep.gamegroup.model.entity.Container;
|
|
|
import com.sheep.gamegroup.model.entity.UserEntity;
|
|
|
+import com.sheep.gamegroup.model.util.ShowRedDot;
|
|
|
import com.sheep.gamegroup.util.ActionUtil;
|
|
|
import com.sheep.gamegroup.util.ChannelContent;
|
|
|
import com.sheep.gamegroup.util.CommonUtil;
|
|
|
@@ -52,7 +52,6 @@ import java.util.Locale;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
|
|
import butterknife.BindView;
|
|
|
-import butterknife.OnClick;
|
|
|
import io.reactivex.Observable;
|
|
|
import io.reactivex.android.schedulers.AndroidSchedulers;
|
|
|
import io.reactivex.schedulers.Schedulers;
|
|
|
@@ -443,6 +442,15 @@ public class ActMain extends BaseActYmPermissionCheck {
|
|
|
}
|
|
|
|
|
|
@Subscribe
|
|
|
+ public void onEventMainThread(ShowRedDot showRedDot) {
|
|
|
+ switch (showRedDot.getWhere()){
|
|
|
+ case ShowRedDot.WHERE_PERSONAL_CENTER://个人中心是否显示红点
|
|
|
+ ViewUtil.setVisibility(person_center_red_dot, showRedDot.isShow() || SpUtils.isVoucherFirst());
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Subscribe
|
|
|
public void onEventMainThread(Intent intent) {
|
|
|
if (intent != null && intent.getAction() != null && intent.getDataString() != null && intent.getDataString().contains("package:")) {
|
|
|
String packageName = intent.getDataString().replace("package:", "");
|