1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-24 09:00:31 +00:00

-Reduced text size for hold to append tip.

-Added options to turn off hold to append tip.
This commit is contained in:
John Zhen Mo 2017-10-16 18:59:59 -07:00
parent eb9770e3ba
commit 21d42c92e5
5 changed files with 11 additions and 1 deletions

View File

@ -480,6 +480,8 @@ public class VideoDetailFragment extends BaseStateFragment<StreamInfo> implement
return new View.OnTouchListener() { return new View.OnTouchListener() {
@Override @Override
public boolean onTouch(View view, MotionEvent motionEvent) { public boolean onTouch(View view, MotionEvent motionEvent) {
if (!PreferenceManager.getDefaultSharedPreferences(activity).getBoolean(getString(R.string.show_hold_to_append_key), true)) return false;
if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) { if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) {
appendControlsDetail.setVisibility(View.VISIBLE); appendControlsDetail.setVisibility(View.VISIBLE);
} else { } else {

View File

@ -64,7 +64,7 @@
android:paddingTop="10dp" android:paddingTop="10dp"
android:layout_gravity="center" android:layout_gravity="center"
android:textColor="@android:color/white" android:textColor="@android:color/white"
android:textSize="26sp" android:textSize="20sp"
android:textStyle="bold" android:textStyle="bold"
android:text="@string/hold_to_append" android:text="@string/hold_to_append"
android:visibility="gone" android:visibility="gone"

View File

@ -96,6 +96,7 @@
<string name="show_search_suggestions_key" translatable="false">show_search_suggestions</string> <string name="show_search_suggestions_key" translatable="false">show_search_suggestions</string>
<string name="show_play_with_kodi_key" translatable="false">show_play_with_kodi</string> <string name="show_play_with_kodi_key" translatable="false">show_play_with_kodi</string>
<string name="show_next_video_key" translatable="false">show_next_video</string> <string name="show_next_video_key" translatable="false">show_next_video</string>
<string name="show_hold_to_append_key" translatable="false">show_hold_to_append</string>
<string name="default_language_value">en</string> <string name="default_language_value">en</string>
<string name="search_language_key" translatable="false">search_language</string> <string name="search_language_key" translatable="false">search_language</string>
<string name="show_age_restricted_content" translatable="false">show_age_restricted_content</string> <string name="show_age_restricted_content" translatable="false">show_age_restricted_content</string>

View File

@ -80,6 +80,8 @@
<string name="download_dialog_title">Download</string> <string name="download_dialog_title">Download</string>
<string name="next_video_title">Next video</string> <string name="next_video_title">Next video</string>
<string name="show_next_and_similar_title">Show next and similar videos</string> <string name="show_next_and_similar_title">Show next and similar videos</string>
<string name="show_hold_to_append_title">Show Hold to Append Tip</string>
<string name="show_hold_to_append_summary">Show tip when background or popup button is pressed on video details page</string>
<string name="url_not_supported_toast">URL not supported</string> <string name="url_not_supported_toast">URL not supported</string>
<string name="search_language_title">Default content language</string> <string name="search_language_title">Default content language</string>
<string name="settings_category_player_title">Player</string> <string name="settings_category_player_title">Player</string>

View File

@ -16,4 +16,9 @@
android:key="@string/show_next_video_key" android:key="@string/show_next_video_key"
android:title="@string/show_next_and_similar_title"/> android:title="@string/show_next_and_similar_title"/>
<SwitchPreference
android:defaultValue="true"
android:key="@string/show_hold_to_append_key"
android:title="@string/show_hold_to_append_title"
android:summary="@string/show_hold_to_append_summary"/>
</PreferenceScreen> </PreferenceScreen>