1
0
Fork 1

Pop back to top on any drawer choice

(cherry picked from commit af9ea84d40d978f5aa5f6d92b912780f5f04755a)
This commit is contained in:
Stephen Paul Weber 2024-09-12 01:36:35 -05:00 committed by Arne
parent 34072f8472
commit cb84ae9f66

View file

@ -465,6 +465,16 @@ public class ConversationsActivity extends XmppActivity implements OnConversatio
selectedTag = (Tag) drawerItem.getTag();
}
binding.drawer.getSelectExtension().selectByIdentifier(mainFilter, false, true);
final var fm = getFragmentManager();
while (fm.getBackStackEntryCount() > 0) {
try {
fm.popBackStackImmediate();
} catch (IllegalStateException e) {
break;
}
}
refreshUi();
return false;
});