mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 03:39:19 +01:00
Add link to Don't Kill My App! in advanced settings
Co-Authored-By: arkon <4098258+arkon@users.noreply.github.com>
This commit is contained in:
parent
63f5cfee3a
commit
d991851c79
@ -30,6 +30,7 @@ import eu.kanade.tachiyomi.ui.base.controller.DialogController
|
|||||||
import eu.kanade.tachiyomi.util.CrashLogUtil
|
import eu.kanade.tachiyomi.util.CrashLogUtil
|
||||||
import eu.kanade.tachiyomi.util.system.launchUI
|
import eu.kanade.tachiyomi.util.system.launchUI
|
||||||
import eu.kanade.tachiyomi.util.system.toast
|
import eu.kanade.tachiyomi.util.system.toast
|
||||||
|
import eu.kanade.tachiyomi.util.view.openInBrowser
|
||||||
import kotlinx.coroutines.CoroutineStart
|
import kotlinx.coroutines.CoroutineStart
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
import kotlinx.coroutines.GlobalScope
|
import kotlinx.coroutines.GlobalScope
|
||||||
@ -74,6 +75,7 @@ class SettingsAdvancedController : SettingsController() {
|
|||||||
CrashLogUtil(context).dumpLogs()
|
CrashLogUtil(context).dumpLogs()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||||
val pm = context.getSystemService(Context.POWER_SERVICE) as? PowerManager?
|
val pm = context.getSystemService(Context.POWER_SERVICE) as? PowerManager?
|
||||||
if (pm != null) preference {
|
if (pm != null) preference {
|
||||||
@ -95,6 +97,17 @@ class SettingsAdvancedController : SettingsController() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
preference {
|
||||||
|
key = "pref_dont_kill_my_app"
|
||||||
|
title = "Don't kill my app!"
|
||||||
|
summaryRes = R.string.about_dont_kill_my_app
|
||||||
|
|
||||||
|
onClick {
|
||||||
|
openInBrowser("https://dontkillmyapp.com/")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
preferenceCategory {
|
preferenceCategory {
|
||||||
titleRes = R.string.data_management
|
titleRes = R.string.data_management
|
||||||
preference {
|
preference {
|
||||||
|
@ -719,6 +719,7 @@
|
|||||||
<string name="crash_logs">Crash logs</string>
|
<string name="crash_logs">Crash logs</string>
|
||||||
<string name="dump_crash_logs">Dump crash logs</string>
|
<string name="dump_crash_logs">Dump crash logs</string>
|
||||||
<string name="saves_error_logs">Saves error logs to a file for sharing with the developers</string>
|
<string name="saves_error_logs">Saves error logs to a file for sharing with the developers</string>
|
||||||
|
<string name="about_dont_kill_my_app">Some manufacturers have additional app restrictions that kill background services. This website has more info on how to fix it.</string>
|
||||||
<string name="crash_log_saved">Crash logs saved</string>
|
<string name="crash_log_saved">Crash logs saved</string>
|
||||||
<string name="network">Network</string>
|
<string name="network">Network</string>
|
||||||
<string name="doh">DNS over HTTPS</string>
|
<string name="doh">DNS over HTTPS</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user