mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 19:35:10 +01:00
Removed back workaround to solve side effects
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user