|
@@ -441,22 +441,6 @@ public class ActMain extends BaseActYmPermissionCheck {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public static final String KEY_HAS_APPOINT_TASK = "hasAppointTask";
|
|
|
|
|
- @Subscribe
|
|
|
|
|
- public void onEventMainThread(ShowRedDot showRedDot) {
|
|
|
|
|
- switch (showRedDot.getWhere()) {
|
|
|
|
|
- case ShowRedDot.WHERE_PERSONAL_CENTER://个人中心是否显示红点
|
|
|
|
|
- DataUtil.putAsBoolean(KEY_HAS_APPOINT_TASK, showRedDot.isShow());
|
|
|
|
|
- ViewUtil.setVisibility(person_center_red_dot, showRedDot.isShow() || SpUtils.isVoucherFirst());
|
|
|
|
|
- Fragment fragment = getSupportFragmentManager().findFragmentByTag("fragment_" + MainTab.FgtPersonnalCenter.ordinal());
|
|
|
|
|
- if (fragment instanceof FgtPersonalCenter)
|
|
|
|
|
- ((FgtPersonalCenter) fragment).setPcMmRedDotVisible(showRedDot.isShow());
|
|
|
|
|
- else if (TestUtil.isTest())
|
|
|
|
|
- G.showToast("测试:程序出错,设置个人中心我的资产小红点失败");
|
|
|
|
|
- break;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
@Subscribe
|
|
@Subscribe
|
|
|
public void onEventMainThread(Intent intent) {
|
|
public void onEventMainThread(Intent intent) {
|
|
|
if (intent != null && intent.getAction() != null && intent.getDataString() != null && intent.getDataString().contains("package:")) {
|
|
if (intent != null && intent.getAction() != null && intent.getDataString() != null && intent.getDataString().contains("package:")) {
|
|
@@ -495,6 +479,22 @@ public class ActMain extends BaseActYmPermissionCheck {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ public static final String KEY_HAS_APPOINT_TASK = "hasAppointTask";
|
|
|
|
|
+ @Subscribe
|
|
|
|
|
+ public void onEventMainThread(ShowRedDot showRedDot) {
|
|
|
|
|
+ switch (showRedDot.getWhere()) {
|
|
|
|
|
+ case ShowRedDot.WHERE_PERSONAL_CENTER://个人中心是否显示红点
|
|
|
|
|
+ DataUtil.putAsBoolean(KEY_HAS_APPOINT_TASK, showRedDot.isShow());
|
|
|
|
|
+ ViewUtil.setVisibility(person_center_red_dot, showRedDot.isShow() || SpUtils.isVoucherFirst());
|
|
|
|
|
+ Fragment fragment = getSupportFragmentManager().findFragmentByTag("fragment_" + MainTab.FgtPersonnalCenter.ordinal());
|
|
|
|
|
+ if (fragment instanceof FgtPersonalCenter)
|
|
|
|
|
+ ((FgtPersonalCenter) fragment).setPcMmRedDotVisible(showRedDot.isShow());
|
|
|
|
|
+ else if (TestUtil.isTest())
|
|
|
|
|
+ G.showToast("测试:程序出错,设置个人中心我的资产小红点失败");
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
@Subscribe
|
|
@Subscribe
|
|
|
public void whenPersonVoucherClick(FgtPersonalCenter.PersonVoucherClickEvent ev) {
|
|
public void whenPersonVoucherClick(FgtPersonalCenter.PersonVoucherClickEvent ev) {
|
|
|
ViewUtil.setVisibility(person_center_red_dot, DataUtil.getAsBoolean(KEY_HAS_APPOINT_TASK, false));
|
|
ViewUtil.setVisibility(person_center_red_dot, DataUtil.getAsBoolean(KEY_HAS_APPOINT_TASK, false));
|