From ba0be665ae9b68b4d43fe8f41cb9d07f91cf943e Mon Sep 17 00:00:00 2001 From: Christian Schabesberger Date: Mon, 12 Feb 2018 00:43:12 +0100 Subject: [PATCH] fixed issues from prevoius merge --- .../newpipe/fragments/detail/VideoDetailFragment.java | 9 ++------- app/src/main/res/layout/fragment_video_detail.xml | 2 +- app/src/main/res/values/strings.xml | 2 +- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java index daf422516..206f6edd8 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java @@ -547,16 +547,11 @@ public class VideoDetailFragment extends BaseStateFragment implement private View.OnTouchListener getOnControlsTouchListener() { return (View view, MotionEvent motionEvent) -> { - view.performClick(); if (!PreferenceManager.getDefaultSharedPreferences(activity).getBoolean(getString(R.string.show_hold_to_append_key), true)) return false; if (motionEvent.getAction() == MotionEvent.ACTION_DOWN) { - animateView(appendControlsDetail, true, 250, 0, new Runnable() { - @Override - public void run() { - animateView(appendControlsDetail, false, 1500, 1000); - } - }); + animateView(appendControlsDetail, true, 250, 0, () -> + animateView(appendControlsDetail, false, 1500, 1000)); } return false; }; diff --git a/app/src/main/res/layout/fragment_video_detail.xml b/app/src/main/res/layout/fragment_video_detail.xml index d47a2215b..330fb34da 100644 --- a/app/src/main/res/layout/fragment_video_detail.xml +++ b/app/src/main/res/layout/fragment_video_detail.xml @@ -364,7 +364,7 @@ android:background="?attr/selectableItemBackground" android:clickable="true" android:focusable="true" - android:contentDescription="@string/controls_download_desg" + android:contentDescription="@string/controls_download_desc" android:drawableTop="?attr/download" android:gravity="center" android:paddingBottom="6dp" diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 7c04cb802..ea8f0fce8 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -13,7 +13,7 @@ Open in popup mode Share Download - Download stream file. + Download stream file. Search Settings Did you mean: %1$s ?