From 5b90e858a1bddd302793acecec843c66fd953a1b Mon Sep 17 00:00:00 2001 From: Abanoub Sameh Date: Mon, 7 Jun 2021 19:30:37 +0200 Subject: [PATCH] Clean up some code, and remove unneeded icons --- .../main/java/org/schabi/newpipe/player/Player.java | 10 +++------- app/src/main/res/drawable-night/ic_content_copy.xml | 10 ---------- app/src/main/res/drawable/ic_content_copy.xml | 9 --------- 3 files changed, 3 insertions(+), 26 deletions(-) delete mode 100644 app/src/main/res/drawable-night/ic_content_copy.xml delete mode 100644 app/src/main/res/drawable/ic_content_copy.xml diff --git a/app/src/main/java/org/schabi/newpipe/player/Player.java b/app/src/main/java/org/schabi/newpipe/player/Player.java index 62bc7bab176..8add19f73a1 100644 --- a/app/src/main/java/org/schabi/newpipe/player/Player.java +++ b/app/src/main/java/org/schabi/newpipe/player/Player.java @@ -3630,7 +3630,9 @@ public boolean onLongClick(final View v) { hideControls(0, 0); hideSystemUIIfNeeded(); } else if (v.getId() == binding.share.getId()) { - getUrlClicked(); + if (currentMetadata != null) { + ShareUtils.copyToClipboard(context, currentMetadata.getMetadata().getOriginalUrl()); + } } return true; } @@ -3735,12 +3737,6 @@ private void onOpenInBrowserClicked() { currentMetadata.getMetadata().getOriginalUrl()); } } - - private void getUrlClicked() { - if (currentMetadata != null) { - ShareUtils.copyToClipboard(context, currentMetadata.getMetadata().getOriginalUrl()); - } - } //endregion diff --git a/app/src/main/res/drawable-night/ic_content_copy.xml b/app/src/main/res/drawable-night/ic_content_copy.xml deleted file mode 100644 index 2f99a24f99a..00000000000 --- a/app/src/main/res/drawable-night/ic_content_copy.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_content_copy.xml b/app/src/main/res/drawable/ic_content_copy.xml deleted file mode 100644 index 4e03c64c8df..00000000000 --- a/app/src/main/res/drawable/ic_content_copy.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - \ No newline at end of file