Removed back workaround to solve side effects

This commit is contained in:
M66B
2023-10-20 21:48:27 +02:00
parent 93809c0a26
commit b88bbffb65
5 changed files with 15 additions and 25 deletions

View File

@@ -74,15 +74,6 @@ public class ActivityCompose extends ActivityBase implements FragmentManager.OnB
handle(intent, false);
}
@Override
public boolean onOptionsItemSelected(@NonNull MenuItem item) {
int itemId = item.getItemId();
if (itemId == android.R.id.home &&
getSupportFragmentManager().getBackStackEntryCount() > 0)
return false; // Delegate to fragment
return super.onOptionsItemSelected(item);
}
@Override
public void onBackStackChanged() {
if (getSupportFragmentManager().getBackStackEntryCount() == 0) {