use of com.eros.framework.model.TabbarBadgeModule in project WeexErosFramework by bmfe.
the class TabbarEvent method showBadge.
private void showBadge(WeexEventBean weexEventBean) {
Context context = weexEventBean.getContext();
ParseManager parseManager = ManagerFactory.getManagerService(ParseManager.class);
TabbarBadgeModule module = parseManager.parseObject(weexEventBean.getJsParams(), TabbarBadgeModule.class);
if (context instanceof MainActivity) {
((MainActivity) context).setBadge(module);
}
}
Aggregations