Skip to content

Make uploading file notification quieter on some devices(Fixed #2528) #2529

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

Merged
merged 1 commit into from
Feb 28, 2019

Conversation

zhao-gang
Copy link
Contributor

Description (required)

Fixes #2528

Add setOnlyAlertOnce flag to NotificationCompat.Builder. This fixed
the issue that notification makes an alarm(beep) every time uploading
progress updated on some devices.

Also let UploadService.class reuse NotificationCompat.Builder as much
as possible(instead of creating a NotificationCompat.Builder every
time in method uploadContribution). And some small refactors.

Tests performed (required)

Tested master betaDebug on Nexus 6P with API level 27.

…s-app#2528)

Add setOnlyAlertOnce flag to NotificationCompat.Builder. This fixed
the issue that notification makes an alarm(beep) every time uploading
progress updated on some devices.

Also let UploadService.class reuse NotificationCompat.Builder as much
as possible(instead of creating a NotificationCompat.Builder every
time in method uploadContribution). And some small refactors.
@codecov-io
Copy link

Codecov Report

Merging #2529 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2529      +/-   ##
=========================================
- Coverage     5.9%    5.9%   -0.01%     
=========================================
  Files         258     258              
  Lines       12304   12305       +1     
  Branches     1103    1103              
=========================================
  Hits          726     726              
- Misses      11519   11520       +1     
  Partials       59      59
Impacted Files Coverage Δ
...java/fr/free/nrw/commons/upload/UploadService.java 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 64eae8b...2a6fdf5. Read the comment docs.

@misaochan
Copy link
Member

Never experienced this issue on my device, but looks good to me. Merging so we can get alpha users' feedback. :)

@misaochan misaochan merged commit ab4fca5 into commons-app:master Feb 28, 2019
@zhao-gang zhao-gang deleted the fix-2528 branch March 3, 2019 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Notification makes an alarm(beep) every time when uploading / DeleteTask progress updated
3 participants