Browse Source

Close thread view on archive

main
M66B 6 years ago
parent
commit
643770b139
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      app/src/main/java/eu/faircode/email/FragmentMessage.java

+ 6
- 1
app/src/main/java/eu/faircode/email/FragmentMessage.java View File

@ -1140,8 +1140,11 @@ public class FragmentMessage extends FragmentEx {
@Override @Override
protected void onLoaded(Bundle args, Boolean close) { protected void onLoaded(Bundle args, Boolean close) {
Helper.setViewsEnabled(view, true); Helper.setViewsEnabled(view, true);
if (close) // archived message
if (close) { // archived message
getFragmentManager().popBackStack(); getFragmentManager().popBackStack();
if (message.threaded)
getFragmentManager().popBackStack();
}
} }
@Override @Override
@ -1194,6 +1197,8 @@ public class FragmentMessage extends FragmentEx {
@Override @Override
protected void onLoaded(Bundle args, Void result) { protected void onLoaded(Bundle args, Void result) {
getFragmentManager().popBackStack(); getFragmentManager().popBackStack();
if (message.threaded)
getFragmentManager().popBackStack();
Helper.setViewsEnabled(view, true); Helper.setViewsEnabled(view, true);
} }


Loading…
Cancel
Save