Skip to content

Make DeleteTask notification quieter on some devices(Fixed #2528) #2538

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
Mar 12, 2019

Conversation

zhao-gang
Copy link
Contributor

Description (required)

This is a followup fix of issue #2528

What changes did you make and why?

As commit ab4fca5 does, this commit fixed the repeated notification
alarms in DeleteTask.class.

Since progress indication in notification can be cleared by calling
.setProgress(0,0,false) on notificationBuilder(As shown in DeleteTask.class).
This commit also refactored notification related code in UploadService.class.
Make progress and failed notification uses the same notificationBuilder.

Tests performed (required)

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

…p#2528)

As commit ab4fca5 does, this commit fixed the repeated notification
alarms in DeleteTask.class.

Since progress indication in notification can be cleared by calling
.setProgress(0,0,false) on notificationBuilder(As shown in DeleteTask.class).
This commit also refactored notification related code in UploadService.class.
Make progress and failed notification uses the same notificationBuilder.
@codecov-io
Copy link

Codecov Report

Merging #2538 into master will increase coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2538      +/-   ##
=========================================
+ Coverage    5.89%    5.9%   +<.01%     
=========================================
  Files         258     258              
  Lines       12306   12305       -1     
  Branches     1103    1103              
=========================================
  Hits          726     726              
+ Misses      11521   11520       -1     
  Partials       59      59
Impacted Files Coverage Δ
...java/fr/free/nrw/commons/upload/UploadService.java 0% <0%> (ø) ⬆️
...in/java/fr/free/nrw/commons/delete/DeleteTask.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 de9a72d...3dcf66e. Read the comment docs.

@neslihanturan
Copy link
Collaborator

Thanks @zhao-gang ! It works as intended, great job.

@neslihanturan neslihanturan merged commit 62c14ec into commons-app:master Mar 12, 2019
@zhao-gang zhao-gang deleted the fix-2528-update branch March 12, 2019 13:48
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.

3 participants