I find myself doing an application in Android Studio and I get this problem that I will narrate in images:
The code of the toolbar is in the problematic activity is:
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
And the manifest of that activity is:
<activity
android:name=".Activities.WordsActivity"
android:parentActivityName=".Activities.MainActivity">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".Activities.MainActivity" />
</activity>
However, if I press to go backwards from the bottom bar button to go back if it goes to the corresponding fragment
PD: API 26
Thank you very much