diff --git a/app/src/main/java/io/legado/app/ui/sourceedit/SourceEditActivity.kt b/app/src/main/java/io/legado/app/ui/sourceedit/SourceEditActivity.kt index cb9c3ed0f..5ad1c0d94 100644 --- a/app/src/main/java/io/legado/app/ui/sourceedit/SourceEditActivity.kt +++ b/app/src/main/java/io/legado/app/ui/sourceedit/SourceEditActivity.kt @@ -1,5 +1,6 @@ package io.legado.app.ui.sourceedit +import android.app.Activity import android.graphics.Rect import android.os.Bundle import android.view.Gravity @@ -71,7 +72,7 @@ class SourceEditActivity : VMBaseActivity(R.layout.activity if (bookSource == null) { toast("书源名称和URL不能为空") } else { - viewModel.save(bookSource) { finish() } + viewModel.save(bookSource) { setResult(Activity.RESULT_OK); finish() } } } R.id.action_debug_source -> {