mirror of
https://github.com/yuzono/anime-extensions.git
synced 2026-06-13 13:39:44 +00:00
chore(toast): Refactor "Restart Aniyomi" to "Restart App" and fix links (#187)
chore: Refactor "Restart Aniyomi" => "Restart App" Also fix some links
This commit is contained in:
6
.github/ISSUE_TEMPLATE.md
vendored
6
.github/ISSUE_TEMPLATE.md
vendored
@@ -2,11 +2,11 @@
|
||||
|
||||
I acknowledge that:
|
||||
|
||||
- I have updated to the latest version of the app (stable is v0.15.2.2)
|
||||
- I have updated to the latest version of the app
|
||||
- I have updated all extensions
|
||||
- If this is an issue with the app itself, that I should be opening an issue in https://github.com/aniyomiorg/aniyomi
|
||||
- If this is an issue with the app itself, that I should be opening an issue in App's support site.
|
||||
- I have searched the existing issues for duplicates
|
||||
- For source requests, I have checked the list of existing extensions including the multi-source spreadsheet: https://aniyomi.org/extensions/
|
||||
- For source requests, I have checked the list of existing extensions including the multi-source spreadsheet: https://yuzono.github.io/extensions-aniyomi/
|
||||
|
||||
**DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT**
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ It might also be good to read our [CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md).
|
||||
## Disclaimer
|
||||
|
||||
This project does not have any affiliation with the content providers available.
|
||||
This project is not affiliated with Aniyomi.
|
||||
Don't ask for help about these extensions at the official support means of Aniyomi.
|
||||
This project is not affiliated with Anikku or Aniyomi.
|
||||
Don't ask for help about these extensions at the official support means of Anikku or Aniyomi.
|
||||
|
||||
All credits to the codebase goes to the original contributors.
|
||||
|
||||
@@ -353,7 +353,7 @@ abstract class ZoroTheme(
|
||||
val selected = newValue as String
|
||||
val index = findIndexOfValue(selected)
|
||||
val entry = entryValues[index] as String
|
||||
Toast.makeText(screen.context, "Restart Aniyomi to apply new setting.", Toast.LENGTH_LONG).show()
|
||||
Toast.makeText(screen.context, "Restart App to apply new setting.", Toast.LENGTH_LONG).show()
|
||||
preferences.edit().putString(key, entry).commit()
|
||||
}
|
||||
}.also(screen::addPreference)
|
||||
@@ -363,7 +363,7 @@ abstract class ZoroTheme(
|
||||
title = "Mark filler episodes"
|
||||
setDefaultValue(MARK_FILLERS_DEFAULT)
|
||||
setOnPreferenceChangeListener { _, newValue ->
|
||||
Toast.makeText(screen.context, "Restart Aniyomi to apply new setting.", Toast.LENGTH_LONG).show()
|
||||
Toast.makeText(screen.context, "Restart App to apply new setting.", Toast.LENGTH_LONG).show()
|
||||
preferences.edit().putBoolean(key, newValue as Boolean).commit()
|
||||
}
|
||||
}.also(screen::addPreference)
|
||||
|
||||
@@ -176,7 +176,7 @@ class AnimeOnsen : ConfigurableAnimeSource, AnimeHttpSource() {
|
||||
}
|
||||
}
|
||||
|
||||
const val AO_USER_AGENT = "Aniyomi/app (mobile)"
|
||||
const val AO_USER_AGENT = "Aniyomi/App (mobile)"
|
||||
private const val PREF_SUB_KEY = "preferred_subLang"
|
||||
private const val PREF_SUB_TITLE = "Preferred sub language"
|
||||
const val PREF_SUB_DEFAULT = "en-US"
|
||||
|
||||
@@ -670,7 +670,7 @@ class GoogleDrive : ConfigurableAnimeSource, AnimeHttpSource() {
|
||||
preferences.edit().putString(DOMAIN_PREF_KEY, newValue as String).commit()
|
||||
Toast.makeText(
|
||||
screen.context,
|
||||
"Restart Aniyomi to apply changes",
|
||||
"Restart App to apply changes",
|
||||
Toast.LENGTH_LONG,
|
||||
).show()
|
||||
res
|
||||
|
||||
@@ -704,7 +704,7 @@ class GoogleDriveIndex : ConfigurableAnimeSource, AnimeHttpSource() {
|
||||
setOnPreferenceChangeListener { _, newValue ->
|
||||
try {
|
||||
val res = preferences.edit().putString(DOMAIN_PREF_KEY, newValue as String).commit()
|
||||
Toast.makeText(screen.context, "Restart Aniyomi to apply changes", Toast.LENGTH_LONG).show()
|
||||
Toast.makeText(screen.context, "Restart App to apply changes", Toast.LENGTH_LONG).show()
|
||||
res
|
||||
} catch (e: java.lang.Exception) {
|
||||
e.printStackTrace()
|
||||
|
||||
@@ -513,7 +513,7 @@ class Jellyfin(private val suffix: String) : ConfigurableAnimeSource, AnimeHttpS
|
||||
|
||||
setDefaultValue(EXTRA_SOURCES_COUNT_DEFAULT)
|
||||
setOnPreferenceChangeListener { _, _ ->
|
||||
Toast.makeText(screen.context, "Restart Aniyomi to apply new setting.", Toast.LENGTH_LONG).show()
|
||||
Toast.makeText(screen.context, "Restart App to apply new setting.", Toast.LENGTH_LONG).show()
|
||||
true
|
||||
}
|
||||
}.also(screen::addPreference)
|
||||
|
||||
@@ -109,7 +109,7 @@ fun PreferenceScreen.addEditTextPreference(
|
||||
val result = text.isBlank() || validate?.invoke(text) ?: true
|
||||
|
||||
if (restartRequired && result) {
|
||||
Toast.makeText(context, "Restart Aniyomi to apply new setting.", Toast.LENGTH_LONG).show()
|
||||
Toast.makeText(context, "Restart App to apply new setting.", Toast.LENGTH_LONG).show()
|
||||
}
|
||||
|
||||
onComplete()
|
||||
|
||||
@@ -691,7 +691,7 @@ class Stremio : ConfigurableAnimeSource, AnimeHttpSource() {
|
||||
preferences.clearCredentials()
|
||||
preferences.clearLogin()
|
||||
|
||||
Toast.makeText(screen.context, "Restart Aniyomi to apply new setting.", Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(screen.context, "Restart App to apply new setting.", Toast.LENGTH_SHORT).show()
|
||||
|
||||
false
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ fun PreferenceScreen.addEditTextPreference(
|
||||
|
||||
if (result) {
|
||||
if (restartRequired) {
|
||||
Toast.makeText(context, "Restart Aniyomi to apply new setting.", Toast.LENGTH_LONG).show()
|
||||
Toast.makeText(context, "Restart App to apply new setting.", Toast.LENGTH_LONG).show()
|
||||
}
|
||||
|
||||
this.summary = getSummary(newValue)
|
||||
|
||||
@@ -260,7 +260,7 @@ class Subsplease : ConfigurableAnimeSource, AnimeHttpSource() {
|
||||
setOnPreferenceChangeListener { _, newValue ->
|
||||
runCatching {
|
||||
val value = (newValue as String).trim().ifBlank { PREF_TOKEN_DEFAULT }
|
||||
Toast.makeText(screen.context, "Restart Aniyomi to apply new setting.", Toast.LENGTH_LONG).show()
|
||||
Toast.makeText(screen.context, "Restart App to apply new setting.", Toast.LENGTH_LONG).show()
|
||||
preferences.edit().putString(key, value).commit()
|
||||
}.getOrDefault(false)
|
||||
}
|
||||
|
||||
@@ -492,7 +492,7 @@ class Torrentio : ConfigurableAnimeSource, AnimeHttpSource() {
|
||||
setOnPreferenceChangeListener { _, newValue ->
|
||||
runCatching {
|
||||
val value = (newValue as String).trim().ifBlank { PREF_TOKEN_DEFAULT }
|
||||
Toast.makeText(screen.context, "Restart Aniyomi to apply new setting.", Toast.LENGTH_LONG).show()
|
||||
Toast.makeText(screen.context, "Restart App to apply new setting.", Toast.LENGTH_LONG).show()
|
||||
preferences.edit().putString(key, value).commit()
|
||||
}.getOrDefault(false)
|
||||
}
|
||||
|
||||
@@ -508,7 +508,7 @@ class Torrentio : ConfigurableAnimeSource, AnimeHttpSource() {
|
||||
setOnPreferenceChangeListener { _, newValue ->
|
||||
runCatching {
|
||||
val value = (newValue as String).trim().ifBlank { PREF_TOKEN_DEFAULT }
|
||||
Toast.makeText(screen.context, "Restart Aniyomi to apply new setting.", Toast.LENGTH_LONG).show()
|
||||
Toast.makeText(screen.context, "Restart App to apply new setting.", Toast.LENGTH_LONG).show()
|
||||
preferences.edit().putString(key, value).commit()
|
||||
}.getOrDefault(false)
|
||||
}
|
||||
|
||||
@@ -444,7 +444,7 @@ class AniPlay : AniListAnimeHttpSource(), ConfigurableAnimeSource {
|
||||
val selected = newValue as String
|
||||
val index = findIndexOfValue(selected)
|
||||
val entry = entryValues[index] as String
|
||||
Toast.makeText(screen.context, "Restart Aniyomi to apply changes", Toast.LENGTH_LONG).show()
|
||||
Toast.makeText(screen.context, "Restart App to apply changes", Toast.LENGTH_LONG).show()
|
||||
preferences.edit().putString(key, entry).commit()
|
||||
}
|
||||
}.also(screen::addPreference)
|
||||
|
||||
@@ -216,7 +216,7 @@ class SuperStream : ConfigurableAnimeSource, AnimeHttpSource() {
|
||||
|
||||
setOnPreferenceChangeListener { _, newValue ->
|
||||
val new = newValue as Boolean
|
||||
Toast.makeText(screen.context, "Restart Aniyomi to apply new setting.", Toast.LENGTH_LONG).show()
|
||||
Toast.makeText(screen.context, "Restart App to apply new setting.", Toast.LENGTH_LONG).show()
|
||||
preferences.edit().putBoolean(key, new).commit()
|
||||
}
|
||||
}.also(screen::addPreference)
|
||||
|
||||
@@ -81,7 +81,7 @@ class HiAnime : ZoroTheme(
|
||||
val entry = entryValues[index] as String
|
||||
Toast.makeText(
|
||||
screen.context,
|
||||
"Restart Aniyomi to apply changes",
|
||||
"Restart App to apply changes",
|
||||
Toast.LENGTH_LONG,
|
||||
).show()
|
||||
preferences.edit().putString(key, entry).commit()
|
||||
|
||||
Reference in New Issue
Block a user