Browse Source

Simplify on new intent

main
M66B 6 years ago
parent
commit
666b5b562c
1 changed files with 1 additions and 7 deletions
  1. +1
    -7
      app/src/main/java/eu/faircode/email/ActivityView.java

+ 1
- 7
app/src/main/java/eu/faircode/email/ActivityView.java View File

@ -62,7 +62,6 @@ import androidx.lifecycle.Observer;
import androidx.localbroadcastmanager.content.LocalBroadcastManager; import androidx.localbroadcastmanager.content.LocalBroadcastManager;
public class ActivityView extends ActivityBase implements FragmentManager.OnBackStackChangedListener { public class ActivityView extends ActivityBase implements FragmentManager.OnBackStackChangedListener {
private boolean newIntent = false;
private DrawerLayout drawerLayout; private DrawerLayout drawerLayout;
private ListView drawerList; private ListView drawerList;
private ActionBarDrawerToggle drawerToggle; private ActionBarDrawerToggle drawerToggle;
@ -261,7 +260,7 @@ public class ActivityView extends ActivityBase implements FragmentManager.OnBack
@Override @Override
protected void onNewIntent(Intent intent) { protected void onNewIntent(Intent intent) {
newIntent = true;
getSupportFragmentManager().popBackStack("unified", 0);
checkIntent(intent); checkIntent(intent);
super.onNewIntent(intent); super.onNewIntent(intent);
} }
@ -276,11 +275,6 @@ public class ActivityView extends ActivityBase implements FragmentManager.OnBack
iff.addAction(ACTION_VIEW_MESSAGE); iff.addAction(ACTION_VIEW_MESSAGE);
iff.addAction(ACTION_EDIT_FOLDER); iff.addAction(ACTION_EDIT_FOLDER);
lbm.registerReceiver(receiver, iff); lbm.registerReceiver(receiver, iff);
if (newIntent) {
newIntent = false;
getSupportFragmentManager().popBackStack("unified", 0);
}
} }
@Override @Override


Loading…
Cancel
Save