Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
0d12df93ab
@ -455,6 +455,12 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
|||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
isfloatBannernet = true;
|
isfloatBannernet = true;
|
||||||
initAnchorRecommendBanner();
|
initAnchorRecommendBanner();
|
||||||
|
} else if (index == 2) {
|
||||||
|
floatBanner.setVisibility(View.GONE);
|
||||||
|
findViewById(R.id.banner_click).setVisibility(View.GONE);
|
||||||
|
isfloatBannernet = false;
|
||||||
|
if (mainMessageViewHolder != null)
|
||||||
|
mainMessageViewHolder.onResume();
|
||||||
} else {
|
} else {
|
||||||
floatBanner.setVisibility(View.GONE);
|
floatBanner.setVisibility(View.GONE);
|
||||||
findViewById(R.id.banner_click).setVisibility(View.GONE);
|
findViewById(R.id.banner_click).setVisibility(View.GONE);
|
||||||
|
@ -99,6 +99,12 @@ public class MainMessageViewHolder extends AbsMainViewHolder {
|
|||||||
return R.layout.view_main_message;
|
return R.layout.view_main_message;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onResume() {
|
||||||
|
super.onResume();
|
||||||
|
initData();
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void init() {
|
public void init() {
|
||||||
EventBus.getDefault().register(this);
|
EventBus.getDefault().register(this);
|
||||||
@ -113,7 +119,7 @@ public class MainMessageViewHolder extends AbsMainViewHolder {
|
|||||||
imgNewsInteraction = (ImageView) findViewById(R.id.img_news_interaction);
|
imgNewsInteraction = (ImageView) findViewById(R.id.img_news_interaction);
|
||||||
imgNewsOnline = (ImageView) findViewById(R.id.img_news_online);
|
imgNewsOnline = (ImageView) findViewById(R.id.img_news_online);
|
||||||
netHandler = new Handler();
|
netHandler = new Handler();
|
||||||
initData();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -179,8 +185,6 @@ public class MainMessageViewHolder extends AbsMainViewHolder {
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
netHandler.post(imUserInfoRunnable);
|
netHandler.post(imUserInfoRunnable);
|
||||||
}
|
|
||||||
});
|
|
||||||
if (IMLoginManager.get(mContext).hintChat()) {
|
if (IMLoginManager.get(mContext).hintChat()) {
|
||||||
container.setVisibility(View.GONE);
|
container.setVisibility(View.GONE);
|
||||||
ltNodataMsg.setVisibility(View.VISIBLE);
|
ltNodataMsg.setVisibility(View.VISIBLE);
|
||||||
@ -201,6 +205,9 @@ public class MainMessageViewHolder extends AbsMainViewHolder {
|
|||||||
//获取一下系统通知
|
//获取一下系统通知
|
||||||
MessageIMManager.get(mContext).getSystemMessages();
|
MessageIMManager.get(mContext).getSystemMessages();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user