Pop back to top on any drawer choice
(cherry picked from commit af9ea84d40d978f5aa5f6d92b912780f5f04755a)
This commit is contained in:
parent
34072f8472
commit
cb84ae9f66
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue