From a8023152df1334ef55756eab43cd3a6cf66a623f Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 14 Mar 2022 23:53:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../legado/app/ui/rss/source/edit/RssSourceEditActivity.kt | 7 ------- app/src/main/res/layout/activity_rss_source_edit.xml | 5 ----- 2 files changed, 12 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/rss/source/edit/RssSourceEditActivity.kt b/app/src/main/java/io/legado/app/ui/rss/source/edit/RssSourceEditActivity.kt index dc6a6397a..9d9fe765b 100644 --- a/app/src/main/java/io/legado/app/ui/rss/source/edit/RssSourceEditActivity.kt +++ b/app/src/main/java/io/legado/app/ui/rss/source/edit/RssSourceEditActivity.kt @@ -6,7 +6,6 @@ import android.view.Menu import android.view.MenuItem import android.widget.EditText import androidx.activity.viewModels -import androidx.compose.runtime.mutableStateOf import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel import io.legado.app.R import io.legado.app.base.VMBaseActivity @@ -32,7 +31,6 @@ class RssSourceEditActivity : override val binding by viewBinding(ActivityRssSourceEditBinding::inflate) override val viewModel by viewModels() - private val urlOptionDialogState = mutableStateOf(false) private val softKeyboardTool by lazy { KeyboardToolPop(this, this, binding.root, this) } @@ -150,11 +148,6 @@ class RssSourceEditActivity : private fun initView() { binding.recyclerView.setEdgeEffectColor(primaryColor) binding.recyclerView.adapter = adapter - binding.composeView.setContent { - UrlOptionDialog(openState = urlOptionDialogState) { - sendText(it) - } - } } private fun upRecyclerView(source: RssSource? = viewModel.rssSource) { diff --git a/app/src/main/res/layout/activity_rss_source_edit.xml b/app/src/main/res/layout/activity_rss_source_edit.xml index 3c3e68813..d839b5170 100644 --- a/app/src/main/res/layout/activity_rss_source_edit.xml +++ b/app/src/main/res/layout/activity_rss_source_edit.xml @@ -86,9 +86,4 @@ app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" tools:listitem="@layout/item_source_edit" /> - - \ No newline at end of file