From b5375396d27ec72baf448dc7733f2e5c32a2b38b Mon Sep 17 00:00:00 2001 From: adinilfeld Date: Wed, 10 Jun 2020 14:17:43 -0700 Subject: [PATCH] allowed user to copy video title to clipboard (from detail screen) --- .../schabi/newpipe/fragments/detail/VideoDetailFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 95d8008c6..a8b007bf4 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 @@ -105,6 +105,7 @@ import io.reactivex.android.schedulers.AndroidSchedulers; import io.reactivex.disposables.CompositeDisposable; import io.reactivex.disposables.Disposable; import io.reactivex.schedulers.Schedulers; +import us.shandian.giga.util.Utility; import static org.schabi.newpipe.extractor.StreamingService.ServiceInfo.MediaCapability.COMMENTS; import static org.schabi.newpipe.extractor.stream.StreamExtractor.NO_AGE_LIMIT; @@ -1429,6 +1430,6 @@ public class VideoDetailFragment extends BaseStateFragment } private void copyTitleText() { - + Utility.copyToClipboard(getContext(), videoTitleTextView.getText().toString()); } }