pull/34/head
kunfei 5 years ago
parent 0d1b8087eb
commit c73c39d7c1
  1. 3
      app/src/main/AndroidManifest.xml
  2. 2
      app/src/main/java/io/legado/app/ui/main/rss/RssFragment.kt
  3. 19
      app/src/main/java/io/legado/app/ui/rss/source/edit/RssSourceEditActivity.kt
  4. 9
      app/src/main/java/io/legado/app/ui/rss/source/edit/RssSourceEditViewModel.kt
  5. 2
      app/src/main/java/io/legado/app/ui/rss/source/manage/RssSourceActivity.kt
  6. 2
      app/src/main/java/io/legado/app/ui/rss/source/manage/RssSourceAdapter.kt
  7. 2
      app/src/main/java/io/legado/app/ui/rss/source/manage/RssSourceViewModel.kt
  8. 17
      app/src/main/res/layout/activity_rss_source_edit.xml
  9. 1
      app/src/main/res/values/strings.xml

@ -65,7 +65,8 @@
<activity android:name=".ui.rss.read.ReadRssActivity" />
<activity android:name=".ui.audio.AudioPlayActivity" />
<activity android:name=".ui.explore.ExploreShowActivity" />
<activity android:name=".ui.rss.source.RssSourceActivity" />
<activity android:name=".ui.rss.source.manage.RssSourceActivity" />
<activity android:name=".ui.rss.source.edit.RssSourceEditActivity" />
<service android:name=".service.CheckSourceService" />
<service android:name=".service.DownloadService" />

@ -10,7 +10,7 @@ import io.legado.app.App
import io.legado.app.R
import io.legado.app.base.BaseFragment
import io.legado.app.lib.theme.ATH
import io.legado.app.ui.rss.source.RssSourceActivity
import io.legado.app.ui.rss.source.manage.RssSourceActivity
import io.legado.app.utils.startActivity
import kotlinx.android.synthetic.main.fragment_rss.*
import kotlinx.android.synthetic.main.view_title_bar.*

@ -0,0 +1,19 @@
package io.legado.app.ui.rss.source.edit
import android.os.Bundle
import io.legado.app.R
import io.legado.app.base.VMBaseActivity
import io.legado.app.utils.getViewModel
class RssSourceEditActivity :
VMBaseActivity<RssSourceEditViewModel>(R.layout.activity_rss_source_edit) {
override val viewModel: RssSourceEditViewModel
get() = getViewModel(RssSourceEditViewModel::class.java)
override fun onActivityCreated(savedInstanceState: Bundle?) {
}
}

@ -0,0 +1,9 @@
package io.legado.app.ui.rss.source.edit
import android.app.Application
import io.legado.app.base.BaseViewModel
class RssSourceEditViewModel(application: Application) : BaseViewModel(application) {
}

@ -1,4 +1,4 @@
package io.legado.app.ui.rss.source
package io.legado.app.ui.rss.source.manage
import android.os.Bundle
import androidx.core.content.ContextCompat

@ -1,4 +1,4 @@
package io.legado.app.ui.rss.source
package io.legado.app.ui.rss.source.manage
import android.content.Context
import io.legado.app.R

@ -1,4 +1,4 @@
package io.legado.app.ui.rss.source
package io.legado.app.ui.rss.source.manage
import android.app.Application
import io.legado.app.base.BaseViewModel

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<io.legado.app.ui.widget.TitleBar
android:id="@+id/title_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:contentInsetStartWithNavigation="0dp"
app:displayHomeAsUp="true"
app:title="@string/rss_source_edit" />
</LinearLayout>

@ -505,6 +505,7 @@
<string name="web_dav_url_s">输入你的服务器地址</string>
<string name="web_dav_account_s">输入你的WebDav账号</string>
<string name="rss_source">订阅源</string>
<string name="rss_source_edit">编辑订阅源</string>
<string name="screen">筛选</string>
<string name="screen_find">筛选发现</string>

Loading…
Cancel
Save