commit | 301cfda71beafd5bd80301408388c77a8e70d2b4 | [log] [tgz] |
---|---|---|
author | Sebastian Rasmussen <sebras@gmail.com> | Sat Jun 18 05:39:49 2022 +0200 |
committer | Sebastian Rasmussen <sebras@gmail.com> | Mon Jun 20 15:55:58 2022 +0200 |
tree | 7fb112c88782ce02af61890621a3437176d54241 | |
parent | 49d9039df6a38cdb8c41708bfece5d430ff71ead [diff] |
Return to library activity when document activity is closed.
diff --git a/lib/src/main/java/com/artifex/mupdf/viewer/DocumentActivity.java b/lib/src/main/java/com/artifex/mupdf/viewer/DocumentActivity.java index db94fa6..708b74c 100644 --- a/lib/src/main/java/com/artifex/mupdf/viewer/DocumentActivity.java +++ b/lib/src/main/java/com/artifex/mupdf/viewer/DocumentActivity.java
@@ -810,7 +810,10 @@ @Override public void onBackPressed() { - if (!mDocView.popHistory()) + if (!mDocView.popHistory()) { super.onBackPressed(); + Intent intent = getPackageManager().getLaunchIntentForPackage(getComponentName().getPackageName()); + startActivity(intent); + } } }