Browse Source

Minor changes trying to fix a crash

len 9 years ago
parent
commit
4196a0f585
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt

+ 2 - 2
app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt

@@ -154,11 +154,11 @@ class ReaderActivity : BaseRxActivity<ReaderPresenter>() {
                         .positiveText(android.R.string.yes)
                         .negativeText(android.R.string.no)
                         .onPositive { dialog, which -> presenter.updateMangaSyncLastChapterRead() }
-                        .onAny { dialog1, which1 -> finish() }
+                        .onAny { dialog1, which1 -> super.onBackPressed() }
                         .show()
             } else {
                 presenter.updateMangaSyncLastChapterRead()
-                finish()
+                super.onBackPressed()
             }
         } else {
             super.onBackPressed()