Search in sources :

Example 1 with NotificationsFragment

use of app.insti.fragment.NotificationsFragment in project IITB-App by wncc.

the class MainActivity method onOptionsItemSelected.

@Override
public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    if (id == R.id.action_notifications) {
        NotificationsFragment notificationsFragment = new NotificationsFragment();
        notificationsFragment.show(getSupportFragmentManager(), TAG);
        return true;
    }
    return super.onOptionsItemSelected(item);
}
Also used : NotificationsFragment(app.insti.fragment.NotificationsFragment) SuppressLint(android.annotation.SuppressLint)

Aggregations

SuppressLint (android.annotation.SuppressLint)1 NotificationsFragment (app.insti.fragment.NotificationsFragment)1