Skip to content

Commit

Permalink
Clean up some code, and remove unneeded icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Abanoub Sameh committed Jun 7, 2021
1 parent a4021b7 commit 5b90e85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 26 deletions.
10 changes: 3 additions & 7 deletions app/src/main/java/org/schabi/newpipe/player/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -3735,12 +3737,6 @@ private void onOpenInBrowserClicked() {
currentMetadata.getMetadata().getOriginalUrl());
}
}

private void getUrlClicked() {
if (currentMetadata != null) {
ShareUtils.copyToClipboard(context, currentMetadata.getMetadata().getOriginalUrl());
}
}
//endregion


Expand Down
10 changes: 0 additions & 10 deletions app/src/main/res/drawable-night/ic_content_copy.xml

This file was deleted.

9 changes: 0 additions & 9 deletions app/src/main/res/drawable/ic_content_copy.xml

This file was deleted.

0 comments on commit 5b90e85

Please sign in to comment.