Close thread view on archive

This commit is contained in:
M66B 2018-10-10 14:29:22 +00:00
parent 67b2f1ca5b
commit 643770b139
1 changed files with 6 additions and 1 deletions

View File

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