From 77cbd8da8f874cab829d2d5eac02e85ad64e632c Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 27 Aug 2019 21:39:02 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/sourceedit/SourceEditActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -> {