Search in sources :

Example 1 with TabbarBadgeModule

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);
    }
}
Also used : Context(android.content.Context) MainActivity(com.eros.framework.activity.MainActivity) ParseManager(com.eros.framework.manager.impl.ParseManager) TabbarBadgeModule(com.eros.framework.model.TabbarBadgeModule)

Aggregations

Context (android.content.Context)1 MainActivity (com.eros.framework.activity.MainActivity)1 ParseManager (com.eros.framework.manager.impl.ParseManager)1 TabbarBadgeModule (com.eros.framework.model.TabbarBadgeModule)1