Wip
This commit is contained in:
parent
66a874f577
commit
e0d7830c43
@ -17,6 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
package net.schueller.peertube.fragment;
|
package net.schueller.peertube.fragment;
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
@ -64,8 +65,8 @@ public class VideoOptionsFragment extends BottomSheetDialogFragment {
|
|||||||
LinearLayout menuRow = (LinearLayout) inflater.inflate(R.layout.row_popup_menu, null);
|
LinearLayout menuRow = (LinearLayout) inflater.inflate(R.layout.row_popup_menu, null);
|
||||||
TextView iconView = menuRow.findViewById(R.id.video_quality_icon);
|
TextView iconView = menuRow.findViewById(R.id.video_quality_icon);
|
||||||
TextView textView = menuRow.findViewById(R.id.video_quality_text);
|
TextView textView = menuRow.findViewById(R.id.video_quality_text);
|
||||||
textView.setText("Video Speed");
|
textView.setText(getString(R.string.menu_video_options_playback_speed));
|
||||||
iconView.setText(R.string.video_speed_active_icon);
|
iconView.setText(R.string.video_option_speed_icon);
|
||||||
new Iconics.IconicsBuilder().ctx(getContext()).on(iconView).build();
|
new Iconics.IconicsBuilder().ctx(getContext()).on(iconView).build();
|
||||||
textView.setOnClickListener(view1 -> {
|
textView.setOnClickListener(view1 -> {
|
||||||
VideoMenuSpeedFragment videoMenuSpeedFragment =
|
VideoMenuSpeedFragment videoMenuSpeedFragment =
|
||||||
@ -79,8 +80,8 @@ public class VideoOptionsFragment extends BottomSheetDialogFragment {
|
|||||||
LinearLayout menuRow2 = (LinearLayout) inflater.inflate(R.layout.row_popup_menu, null);
|
LinearLayout menuRow2 = (LinearLayout) inflater.inflate(R.layout.row_popup_menu, null);
|
||||||
TextView iconView2 = menuRow2.findViewById(R.id.video_quality_icon);
|
TextView iconView2 = menuRow2.findViewById(R.id.video_quality_icon);
|
||||||
TextView textView2 = menuRow2.findViewById(R.id.video_quality_text);
|
TextView textView2 = menuRow2.findViewById(R.id.video_quality_text);
|
||||||
textView2.setText("Video Quality");
|
textView2.setText(getString(R.string.menu_video_options_quality));
|
||||||
iconView2.setText(R.string.video_speed_active_icon);
|
iconView2.setText(R.string.video_option_quality_icon);
|
||||||
new Iconics.IconicsBuilder().ctx(getContext()).on(iconView2).build();
|
new Iconics.IconicsBuilder().ctx(getContext()).on(iconView2).build();
|
||||||
textView2.setOnClickListener(view1 -> {
|
textView2.setOnClickListener(view1 -> {
|
||||||
VideoMenuQualityFragment videoMenuQualityFragment =
|
VideoMenuQualityFragment videoMenuQualityFragment =
|
||||||
|
@ -285,8 +285,10 @@
|
|||||||
<string name="video_speed_15">1.5x</string>
|
<string name="video_speed_15">1.5x</string>
|
||||||
<string name="video_speed_20">2x</string>
|
<string name="video_speed_20">2x</string>
|
||||||
|
|
||||||
|
<string name="video_option_speed_icon" translatable="false">{faw-play-circle}</string>
|
||||||
|
<string name="video_option_quality_icon" translatable="false">{faw-cog}</string>
|
||||||
<string name="video_speed_active_icon" translatable="false">{faw-check}</string>
|
<string name="video_speed_active_icon" translatable="false">{faw-check}</string>
|
||||||
|
<string name="video_quality_active_icon" translatable="false">{faw-check}</string>
|
||||||
<string name="video_expand_icon" translatable="false">{faw-expand}</string>
|
<string name="video_expand_icon" translatable="false">{faw-expand}</string>
|
||||||
<string name="video_compress_icon" translatable="false">{faw-compress}</string>
|
<string name="video_compress_icon" translatable="false">{faw-compress}</string>
|
||||||
<string name="video_more_icon" translatable="false">{faw-ellipsis-v}</string>
|
<string name="video_more_icon" translatable="false">{faw-ellipsis-v}</string>
|
||||||
@ -315,6 +317,8 @@
|
|||||||
<string name="video_meta_button_language">Language</string>
|
<string name="video_meta_button_language">Language</string>
|
||||||
<string name="video_meta_button_tags">Tags</string>
|
<string name="video_meta_button_tags">Tags</string>
|
||||||
|
|
||||||
|
<string name="menu_video_options_playback_speed">Playback speed</string>
|
||||||
|
<string name="menu_video_options_quality">Quality</string>
|
||||||
|
|
||||||
<!-- Constants, Don't translate -->
|
<!-- Constants, Don't translate -->
|
||||||
<string name="pref_token_access" translatable="false">pref_token_access</string>
|
<string name="pref_token_access" translatable="false">pref_token_access</string>
|
||||||
@ -328,4 +332,5 @@
|
|||||||
<string name="video_rating_dislike" translatable="false">dislike</string>
|
<string name="video_rating_dislike" translatable="false">dislike</string>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
Reference in New Issue
Block a user