use of dev.sagar.smsblocker.ux.adapters.RVHomeAdapter in project SMSBlocker by sagarpawardev.
the class HomeActivity method init.
private void init() {
fab = (FloatingActionButton) findViewById(R.id.fab);
notificationView = (NotificationView) findViewById(R.id.notificationView);
recyclerView = (RecyclerView) findViewById(R.id.lv_threads);
viewPlaceHolder = findViewById(R.id.holder_placeholder);
switchUnread = (SwitchCompat) findViewById(R.id.switch_unread);
tvTotalCount = (TextView) findViewById(R.id.tv_total_count);
holderLoader = findViewById(R.id.holder_loader);
holderMain = findViewById(R.id.holder_main);
holderSwitch = findViewById(R.id.holder_switch);
// if(inboxUtil == null) inboxUtil = new InboxUtil(this);
if (conversationUtil == null)
conversationUtil = new ConversationUtil(this, this);
adapter = new RVHomeAdapter(this, conversationMap, this);
amCallback = new AMCallbackHome(adapter);
smsReceiver = new LocalSMSReceivedReceiver(this);
RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());
recyclerView.setLayoutManager(mLayoutManager);
recyclerView.setAdapter(adapter);
setFont();
}
Aggregations