removed sub dub toggle(useless)
This commit is contained in:
parent
cb8ebfccb6
commit
60981ba224
4 changed files with 0 additions and 25 deletions
|
@ -53,7 +53,6 @@ class MediaDetailsViewModel : ViewModel() {
|
||||||
true -> sharedPreferences.getInt("settings_def_anime_source_s_r", 0)
|
true -> sharedPreferences.getInt("settings_def_anime_source_s_r", 0)
|
||||||
else -> sharedPreferences.getInt(("settings_def_manga_source_s_r"), 0)
|
else -> sharedPreferences.getInt(("settings_def_manga_source_s_r"), 0)
|
||||||
}
|
}
|
||||||
it.preferDub = loadData("settings_prefer_dub") ?: false
|
|
||||||
saveSelected(media.id, it)
|
saveSelected(media.id, it)
|
||||||
it
|
it
|
||||||
}
|
}
|
||||||
|
|
|
@ -436,11 +436,6 @@ class SettingsActivity : AppCompatActivity(), SimpleDialog.OnDialogResultListene
|
||||||
).edit().putBoolean("shared_user_id", isChecked).apply()
|
).edit().putBoolean("shared_user_id", isChecked).apply()
|
||||||
}
|
}
|
||||||
|
|
||||||
binding.settingsPreferDub.isChecked = loadData("settings_prefer_dub") ?: false
|
|
||||||
binding.settingsPreferDub.setOnCheckedChangeListener { _, isChecked ->
|
|
||||||
saveData("settings_prefer_dub", isChecked)
|
|
||||||
}
|
|
||||||
|
|
||||||
//val mangaSource = loadData<Int>("settings_def_manga_source_s")?.let { if (it >= MangaSources.names.size) 0 else it } ?: 0
|
//val mangaSource = loadData<Int>("settings_def_manga_source_s")?.let { if (it >= MangaSources.names.size) 0 else it } ?: 0
|
||||||
val mangaSource = getSharedPreferences(
|
val mangaSource = getSharedPreferences(
|
||||||
"Dantotsu",
|
"Dantotsu",
|
||||||
|
|
|
@ -36,7 +36,6 @@ class SubscriptionHelper {
|
||||||
} else {
|
} else {
|
||||||
sharedPreferences.getInt("settings_def_manga_source_s_r", 0)
|
sharedPreferences.getInt("settings_def_manga_source_s_r", 0)
|
||||||
}
|
}
|
||||||
it.preferDub = loadData("settings_prefer_dub", context) ?: false
|
|
||||||
it
|
it
|
||||||
}
|
}
|
||||||
return data
|
return data
|
||||||
|
|
|
@ -1208,24 +1208,6 @@
|
||||||
android:layout_marginBottom="8dp"
|
android:layout_marginBottom="8dp"
|
||||||
android:background="?android:attr/listDivider" />
|
android:background="?android:attr/listDivider" />
|
||||||
|
|
||||||
<com.google.android.material.materialswitch.MaterialSwitch
|
|
||||||
android:id="@+id/settingsPreferDub"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:checked="false"
|
|
||||||
android:drawableStart="@drawable/ic_round_audiotrack_24"
|
|
||||||
android:drawablePadding="16dp"
|
|
||||||
android:elegantTextHeight="true"
|
|
||||||
android:fontFamily="@font/poppins_bold"
|
|
||||||
android:minHeight="64dp"
|
|
||||||
android:text="@string/prefer_dub"
|
|
||||||
android:textAlignment="viewStart"
|
|
||||||
android:textColor="?attr/colorOnBackground"
|
|
||||||
app:cornerRadius="0dp"
|
|
||||||
app:drawableTint="?attr/colorPrimary"
|
|
||||||
app:showText="false"
|
|
||||||
app:thumbTint="@color/button_switch_track" />
|
|
||||||
|
|
||||||
<com.google.android.material.materialswitch.MaterialSwitch
|
<com.google.android.material.materialswitch.MaterialSwitch
|
||||||
android:id="@+id/settingsShowYt"
|
android:id="@+id/settingsShowYt"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue