Fix wrong handling of back button (#7067)

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2020-10-16 06:52:09 +02:00
parent 4b91b23c28
commit 45367ee3f4
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -809,9 +809,7 @@ public class FileDisplayActivity extends FileActivity
} else if (
currentDir != null && currentDir.getParentId() != 0 ||
second != null && second.getFile() != null ||
isSearchOpen() ||
second == null
) {
isSearchOpen()) {
onBackPressed();
} else {
openDrawer();