Check emptiness of previousSortGroupState

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-02-12 13:04:35 +01:00 committed by Alper Öztürk
parent f7502cead3
commit 9151e32a5b

View file

@ -2486,6 +2486,10 @@ public class FileDisplayActivity extends FileActivity
* visibility earlier using {@link #setSortListGroup(boolean, boolean)}
*/
private void popSortListGroupVisibility() {
if (previousSortGroupState.isEmpty()) {
return;
}
boolean popped = previousSortGroupState.pop();
showSortListGroup(popped);
}