feat(Settings): Toggleable RPC (#513)
This commit is contained in:
parent
3071f88681
commit
b703337a16
7 changed files with 29 additions and 3 deletions
|
@ -414,7 +414,8 @@ class MangaReaderActivity : AppCompatActivity() {
|
|||
val context = this
|
||||
val offline: Boolean = PrefManager.getVal(PrefName.OfflineMode)
|
||||
val incognito: Boolean = PrefManager.getVal(PrefName.Incognito)
|
||||
if ((isOnline(context) && !offline) && Discord.token != null && !incognito) {
|
||||
val rpcenabled: Boolean = PrefManager.getVal(PrefName.rpcEnabled)
|
||||
if ((isOnline(context) && !offline) && Discord.token != null && !incognito && rpcenabled) {
|
||||
lifecycleScope.launch {
|
||||
val discordMode = PrefManager.getCustomVal("discord_mode", "dantotsu")
|
||||
val buttons = when (discordMode) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue