diff --git a/app/src/main/java/io/legado/app/ui/association/ImportReplaceRuleDialog.kt b/app/src/main/java/io/legado/app/ui/association/ImportReplaceRuleDialog.kt index cd5ccf0d4..dce88a04c 100644 --- a/app/src/main/java/io/legado/app/ui/association/ImportReplaceRuleDialog.kt +++ b/app/src/main/java/io/legado/app/ui/association/ImportReplaceRuleDialog.kt @@ -1,7 +1,6 @@ package io.legado.app.ui.association import android.content.Context -import android.content.DialogInterface import android.os.Bundle import android.view.LayoutInflater import android.view.View @@ -135,11 +134,6 @@ class ImportReplaceRuleDialog : BaseDialogFragment() { } } - override fun onDismiss(dialog: DialogInterface) { - super.onDismiss(dialog) - activity?.finish() - } - inner class SourcesAdapter(context: Context) : RecyclerAdapter(context) { diff --git a/app/src/main/java/io/legado/app/ui/association/ImportRssSourceDialog.kt b/app/src/main/java/io/legado/app/ui/association/ImportRssSourceDialog.kt index a874d4259..f5fea4d57 100644 --- a/app/src/main/java/io/legado/app/ui/association/ImportRssSourceDialog.kt +++ b/app/src/main/java/io/legado/app/ui/association/ImportRssSourceDialog.kt @@ -2,7 +2,6 @@ package io.legado.app.ui.association import android.annotation.SuppressLint import android.content.Context -import android.content.DialogInterface import android.os.Bundle import android.view.LayoutInflater import android.view.MenuItem @@ -187,11 +186,6 @@ class ImportRssSourceDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickListe return false } - override fun onDismiss(dialog: DialogInterface) { - super.onDismiss(dialog) - activity?.finish() - } - inner class SourcesAdapter(context: Context) : RecyclerAdapter(context) {