mirror of
https://github.com/NiciDieNase/chaosflix
synced 2025-02-16 21:18:23 +00:00
enable option to play with external players
This commit is contained in:
parent
ee718e6d85
commit
7243f8713d
3 changed files with 12 additions and 23 deletions
|
@ -188,9 +188,13 @@ class EventDetailsFragment : DetailsSupportFragment() {
|
|||
DetailsViewModel.State.Loading -> {
|
||||
showLoadingDialog()
|
||||
}
|
||||
DetailsViewModel.State.PlayExternal -> {
|
||||
state.data?.getParcelable<Recording>(DetailsViewModel.RECORDING)?.let{ recording ->
|
||||
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(recording.recordingUrl)))
|
||||
}
|
||||
}
|
||||
DetailsViewModel.State.PlayOfflineItem -> irrelevantCase()
|
||||
DetailsViewModel.State.DownloadRecording -> irrelevantCase()
|
||||
DetailsViewModel.State.PlayExternal -> irrelevantCase()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="recomended">Recomended</string>
|
||||
<string name="recommended">Recommended</string>
|
||||
<string name="continue_watching">Continue Watching</string>
|
||||
<string name="pref_external_player">Use external player</string>
|
||||
</resources>
|
|
@ -1,43 +1,27 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="Streaming">
|
||||
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="auto_select_stream"
|
||||
android:summary="@string/pref_autoselect_stream"
|
||||
android:title="@string/setting_choose_stream"/>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="Recordings">
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="auto_select_recording"
|
||||
android:summary="@string/pref_autoselect_recording"
|
||||
android:title="@string/settings_choose_recording"/>
|
||||
|
||||
<!-- <SwitchPreference-->
|
||||
<!-- android:defaultValue="false"-->
|
||||
<!-- android:key="auto_external_player"-->
|
||||
<!-- android:title="@string/pref_external_player"-->
|
||||
<!-- android:summary=""/>-->
|
||||
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory
|
||||
android:title="Privacy">
|
||||
<SwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="auto_external_player"
|
||||
android:title="@string/pref_external_player"
|
||||
android:summary=""/>
|
||||
|
||||
<SwitchPreference
|
||||
android:title="Disable Statistics and Crash Reports"
|
||||
android:key="disable_analytics"
|
||||
android:defaultValue="false"/>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
|
||||
</PreferenceScreen>
|
Loading…
Add table
Reference in a new issue