1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-11-19 00:25:13 +00:00

fixed issues from prevoius merge

This commit is contained in:
Christian Schabesberger
2018-02-12 00:43:12 +01:00
parent 0ba6f8b39f
commit ba0be665ae
3 changed files with 4 additions and 9 deletions

View File

@@ -547,16 +547,11 @@ public class VideoDetailFragment extends BaseStateFragment<StreamInfo> 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;
};