pull/32/head
kunfei 5 years ago
parent 03b7c3b6e7
commit 77cbd8da8f
  1. 3
      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<SourceEditViewModel>(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 -> {

Loading…
Cancel
Save