There is a dialog that is not called by id from navigation.
in MainActivity
@Override public boolean onNavigationItemSelected(MenuItem item) { // Handle navigation view item clicks here. int id = item.getItemId(); if (id == R.id.recent_activity) { Intent intent = new Intent(this, RecentActivity.class); startActivity(intent); } if (id == R.id.rate_dialog) { rateApp = new RateAppFragmentDialog(); rateApp.show(getSupportFragmentManager(), "rate"); } return true; } In fairness, I note that the call to activate through the intent above occurs as needed.
id rechecked, correct.
UPD:
And what is this black mystic?

if()- Vladyslav Matviienkoid= rate_app, mark as an answer - Silento