mirror of
https://github.com/jellyfin/jellyfin-android.git
synced 2026-11-20 04:54:49 +00:00
Remove informative toast when toggling ExoPlayer
This commit is contained in:
1 parent
601c4da98d
commit
361ca2d94a
2 files changed
-8
No files matched your search
@@ -1,17 +1,14 @@
|
||||
package org.jellyfin.mobile.settings
|
||||
|
||||
import android.os.Bundle
|
||||
import android.widget.Toast
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import de.Maxr1998.modernpreferences.PreferencesAdapter
|
||||
import de.Maxr1998.modernpreferences.helpers.categoryHeader
|
||||
import de.Maxr1998.modernpreferences.helpers.checkBox
|
||||
import de.Maxr1998.modernpreferences.helpers.screen
|
||||
import de.Maxr1998.modernpreferences.preferences.TwoStatePreference
|
||||
import org.jellyfin.mobile.R
|
||||
import org.jellyfin.mobile.utils.Constants
|
||||
import org.jellyfin.mobile.utils.toast
|
||||
|
||||
class SettingsActivity : AppCompatActivity() {
|
||||
|
||||
@@ -46,10 +43,6 @@ class SettingsActivity : AppCompatActivity() {
|
||||
checkBox(Constants.PREF_ENABLE_EXOPLAYER) {
|
||||
titleRes = R.string.pref_enable_exoplayer_title
|
||||
summaryRes = R.string.pref_enable_exoplayer_summary
|
||||
checkedChangeListener = TwoStatePreference.OnCheckedChangeListener { _, _, _ ->
|
||||
toast(R.string.toast_exo_player_restart_app, Toast.LENGTH_LONG)
|
||||
true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -27,5 +27,4 @@
|
||||
<string name="pref_category_video_player">Native video player</string>
|
||||
<string name="pref_enable_exoplayer_title">Enable video player integration</string>
|
||||
<string name="pref_enable_exoplayer_summary">Enable the experimental ExoPlayer video player which supports more video formats and codecs, and is more integrated into the OS</string>
|
||||
<string name="toast_exo_player_restart_app">Restart app for changes to be applied</string>
|
||||
</resources>
|
||||
Reference in new issue
Block a user