use of org.aisen.weibo.sina.sinasdk.bean.UnreadCount in project AisenWeiBo by wangdan.
the class NotificationPagerFragment method newInstance.
public static NotificationPagerFragment newInstance(int index) {
if (index == -1) {
index = 0;
UnreadCount count = AppContext.getAccount().getUnreadCount();
if (count != null && count.getCmt() == 0) {
if (count.getMention_status() > 0) {
index = 1;
} else if (count.getMention_cmt() > 0) {
index = 2;
}
}
}
NotificationPagerFragment fragment = new NotificationPagerFragment();
Bundle args = new Bundle();
args.putString(SET_INDEX, String.valueOf(index));
fragment.setArguments(args);
return fragment;
}
Aggregations