From fbb238db180b491b55bf20586098406a034469f3 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Wed, 17 Feb 2021 11:12:01 +0300 Subject: [PATCH] fix crash in onPause --- android/src/org/coolreader/CoolReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/org/coolreader/CoolReader.java b/android/src/org/coolreader/CoolReader.java index 04c8db1ae3..9154a8b10e 100644 --- a/android/src/org/coolreader/CoolReader.java +++ b/android/src/org/coolreader/CoolReader.java @@ -767,7 +767,6 @@ private String filePathFromUri(Uri uri) { @Override protected void onPause() { activityIsRunning = false; - super.onPause(); if (mReaderView != null) { mReaderView.onAppPause(); } @@ -777,6 +776,7 @@ protected void onPause() { mGoogleDriveSync.startSyncTo(getCurrentBookInfo(), Synchronizer.SYNC_FLAG_QUIETLY | Synchronizer.SYNC_FLAG_SHOW_PROGRESS); } } + super.onPause(); } @Override