mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-26 07:31:01 +00:00
fix: smol changes
This commit is contained in:
@@ -11,7 +11,7 @@ import androidx.recyclerview.widget.LinearLayoutManager
|
||||
import ani.dantotsu.R
|
||||
import ani.dantotsu.addons.AddonDownloader
|
||||
import ani.dantotsu.addons.download.DownloadAddonManager
|
||||
import ani.dantotsu.addons.torrent.ServerService
|
||||
import ani.dantotsu.addons.torrent.TorrentServerService
|
||||
import ani.dantotsu.addons.torrent.TorrentAddonManager
|
||||
import ani.dantotsu.databinding.ActivitySettingsAddonsBinding
|
||||
import ani.dantotsu.databinding.ItemSettingsBinding
|
||||
@@ -141,7 +141,7 @@ class SettingsAddonActivity : AppCompatActivity() {
|
||||
}
|
||||
it.settingsIconRight.setOnClickListener { _ ->
|
||||
if (it.settingsDesc.text == getString(R.string.installed)) {
|
||||
ServerService.stop()
|
||||
TorrentServerService.stop()
|
||||
torrentAddonManager.uninstall()
|
||||
return@setOnClickListener
|
||||
} else {
|
||||
@@ -190,14 +190,14 @@ class SettingsAddonActivity : AppCompatActivity() {
|
||||
Injekt.get<TorrentAddonManager>().extension?.let {
|
||||
if (isChecked) {
|
||||
lifecycleScope.launchIO {
|
||||
if (!ServerService.isRunning()) {
|
||||
ServerService.start()
|
||||
if (!TorrentServerService.isRunning()) {
|
||||
TorrentServerService.start()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
lifecycleScope.launchIO {
|
||||
if (ServerService.isRunning()) {
|
||||
ServerService.stop()
|
||||
if (TorrentServerService.isRunning()) {
|
||||
TorrentServerService.stop()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user