Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
gedoor committed Feb 15, 2020
1 parent a459bfa commit 495407d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ object Backup {
} else {
backup(MApplication.getInstance(), path, null)
}
MApplication.getConfigPreferences().edit().putLong("lastBackup", System.currentTimeMillis()).apply()
}

fun backup(context: Context, path: String, callBack: CallBack?) {
MApplication.getConfigPreferences().edit().putLong("lastBackup", System.currentTimeMillis()).apply()
Single.create(SingleOnSubscribe<Boolean> { e ->
BookshelfHelp.getAllBook().let {
if (it.isNotEmpty()) {
Expand Down

0 comments on commit 495407d

Please sign in to comment.