Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the redundant/overlapping toast "Copied to clipboard" for Android 13+ #8961

Merged
merged 2 commits into from
Nov 26, 2022

Conversation

dhruvpatidar359
Copy link
Contributor

@dhruvpatidar359 dhruvpatidar359 commented Sep 11, 2022

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

This PR removes the extra toast when some text is copied using ShareUtils.copyToClipboard, for Android 13 and above.
The copyToClipboard method of the Utility class has been removed and its usages have been replaced by the method of ShareUtils.

Before/After Screenshots/Screen Record

  • Before:

before

  • After:

after

Fixes the following issue(s)

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.

Due diligence

@AudricV AudricV added feature request Issue is related to a feature in the app device/software specific Issues that only happen on some devices or with some specific hardware/software template ignored The user didn't follow the template/instructions (or removed them) labels Sep 11, 2022
@dhruvpatidar359
Copy link
Contributor Author

@AudricV can you please review the PR

@dhruvpatidar359
Copy link
Contributor Author

In case if there is any issue please tell me , I will resolve it

@AudricV AudricV removed the template ignored The user didn't follow the template/instructions (or removed them) label Sep 14, 2022
@dhruvpatidar359
Copy link
Contributor Author

dhruvpatidar359 commented Sep 18, 2022

@AudricV is this PR is ready to merge or i have to do some more modifications in this ?

@opusforlife2
Copy link
Collaborator

We already have a release candidate for the next version, so wait for it to be released.

@dhruvpatidar359
Copy link
Contributor Author

We already have a release candidate for the next version, so wait for it to be released.

👍

Copy link
Member

@TobiGr TobiGr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

Copy link
Member

@AudricV AudricV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, there is no need here to use the full qualified name of the Android Build class, as this class can be imported without any conflicts (there is no other Build class used in the files modified).

Also, this class is already imported in the files modified by this PR.

@dhruvpatidar359 Could you apply these changes, please? Thank you in advance!
Edit: done myself

@AudricV AudricV changed the title Remove the redundant/overlapping toast "Copied to clipboard" for android 13+ Remove the redundant/overlapping toast "Copied to clipboard" for Android 13+ Nov 8, 2022
dhruvpatidar359 and others added 2 commits November 8, 2022 20:47
…tead

This method is not needed anymore, as ShareUtils.copyToClipboard does
almost the same thing (no label is set on the ClipData used to copy text,
contrary to what Utility did, but using "text" as a ClipData label doesn't seem
useful).

It was used in MissionAdapter.handlePopupItem to copy the SHA1 or the MD5 of a
file.
@sonarcloud
Copy link

sonarcloud bot commented Nov 8, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@AudricV AudricV merged commit 6b89b44 into TeamNewPipe:dev Nov 26, 2022
@Stypox Stypox mentioned this pull request Jan 22, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
device/software specific Issues that only happen on some devices or with some specific hardware/software feature request Issue is related to a feature in the app
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants