Skip to content

Commit

Permalink
fix crash in onPause
Browse files Browse the repository at this point in the history
  • Loading branch information
buggins committed Feb 17, 2021
1 parent 7eaa69a commit fbb238d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/src/org/coolreader/CoolReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,6 @@ private String filePathFromUri(Uri uri) {
@Override
protected void onPause() {
activityIsRunning = false;
super.onPause();
if (mReaderView != null) {
mReaderView.onAppPause();
}
Expand All @@ -777,6 +776,7 @@ protected void onPause() {
mGoogleDriveSync.startSyncTo(getCurrentBookInfo(), Synchronizer.SYNC_FLAG_QUIETLY | Synchronizer.SYNC_FLAG_SHOW_PROGRESS);
}
}
super.onPause();
}

@Override
Expand Down

0 comments on commit fbb238d

Please sign in to comment.