Fix back icon when returning from build-in pdf viewer

Signed-off-by: ZetaTom <70907959+ZetaTom@users.noreply.github.com>
This commit is contained in:
ZetaTom 2023-06-23 16:55:21 +02:00
parent 391ffa5b1d
commit 55bd8cbd9c
No known key found for this signature in database
GPG key ID: C705C33DC3B9BA5B

View file

@ -1080,6 +1080,8 @@ public class FileDisplayActivity extends FileActivity
}
} else if (leftFragment instanceof PreviewTextStringFragment) {
createMinFragments(null);
} else if (leftFragment instanceof PreviewPdfFragment) {
super.onBackPressed();
} else {
// pop back
resetScrolling(true);