{"action":"created","comment":{"url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/pulls/comments/174413638","pull_request_review_id":103762342,"id":174413638,"diff_hunk":"@@ -0,0 +1,277 @@\n+package com.amaze.filemanager.asynchronous.services;\n+\n+import android.app.NotificationManager;\n+import android.app.PendingIntent;\n+import android.app.Service;\n+import android.content.Context;\n+import android.content.Intent;\n+import android.support.v4.app.NotificationCompat;\n+import android.text.format.Formatter;\n+import android.util.Log;\n+\n+import com.amaze.filemanager.R;\n+import com.amaze.filemanager.activities.MainActivity;\n+import com.amaze.filemanager.filesystem.HybridFile;\n+import com.amaze.filemanager.fragments.ProcessViewerFragment;\n+import com.amaze.filemanager.ui.notifications.NotificationConstants;\n+import com.amaze.filemanager.utils.DatapointParcelable;\n+import com.amaze.filemanager.utils.ProgressHandler;\n+import com.amaze.filemanager.utils.ServiceWatcherUtil;\n+\n+import java.util.ArrayList;\n+\n+/**\n+ * @author Emmanuel Messulam <emmanuelbendavid@gmail.com>\n+ *         on 28/11/2017, at 19:32.\n+ */\n+\n+public abstract class ProgressiveServiceAbstract extends Service implements ServiceWatcherUtil.ServiceWatcherInteractionInterface {","path":"app/src/main/java/com/amaze/filemanager/asynchronous/services/ProgressiveServiceAbstract.java","position":28,"original_position":28,"commit_id":"46f1097f99bff9663c55b6cbfcf4676cf3536569","original_commit_id":"46f1097f99bff9663c55b6cbfcf4676cf3536569","user":{"login":"VishalNehra","id":5211568,"avatar_url":"https://avatars2.githubusercontent.com/u/5211568?v=4","gravatar_id":"","url":"https://api.github.com/users/VishalNehra","html_url":"https://github.com/VishalNehra","followers_url":"https://api.github.com/users/VishalNehra/followers","following_url":"https://api.github.com/users/VishalNehra/following{/other_user}","gists_url":"https://api.github.com/users/VishalNehra/gists{/gist_id}","starred_url":"https://api.github.com/users/VishalNehra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VishalNehra/subscriptions","organizations_url":"https://api.github.com/users/VishalNehra/orgs","repos_url":"https://api.github.com/users/VishalNehra/repos","events_url":"https://api.github.com/users/VishalNehra/events{/privacy}","received_events_url":"https://api.github.com/users/VishalNehra/received_events","type":"User","site_admin":false},"body":"It helps when we're taking a quick look. Just like 'MainActivity' or 'CopyService'.","created_at":"2018-03-14T10:30:40Z","updated_at":"2018-03-14T10:30:40Z","html_url":"https://github.com/TeamAmaze/AmazeFileManager/pull/1108#discussion_r174413638","pull_request_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/pulls/1108","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/pulls/comments/174413638"},"html":{"href":"https://github.com/TeamAmaze/AmazeFileManager/pull/1108#discussion_r174413638"},"pull_request":{"href":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/pulls/1108"}},"in_reply_to_id":174346603},"pull_request":{"url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/pulls/1108","id":174729589,"html_url":"https://github.com/TeamAmaze/AmazeFileManager/pull/1108","diff_url":"https://github.com/TeamAmaze/AmazeFileManager/pull/1108.diff","patch_url":"https://github.com/TeamAmaze/AmazeFileManager/pull/1108.patch","issue_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/issues/1108","number":1108,"state":"open","locked":false,"title":"Fix watcher progress (again)","user":{"login":"VishalNehra","id":5211568,"avatar_url":"https://avatars2.githubusercontent.com/u/5211568?v=4","gravatar_id":"","url":"https://api.github.com/users/VishalNehra","html_url":"https://github.com/VishalNehra","followers_url":"https://api.github.com/users/VishalNehra/followers","following_url":"https://api.github.com/users/VishalNehra/following{/other_user}","gists_url":"https://api.github.com/users/VishalNehra/gists{/gist_id}","starred_url":"https://api.github.com/users/VishalNehra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VishalNehra/subscriptions","organizations_url":"https://api.github.com/users/VishalNehra/orgs","repos_url":"https://api.github.com/users/VishalNehra/repos","events_url":"https://api.github.com/users/VishalNehra/events{/privacy}","received_events_url":"https://api.github.com/users/VishalNehra/received_events","type":"User","site_admin":false},"body":"Remake of #916 which was halted due to change in codebase and conflicts with master.\r\n\r\n<repeat>\r\nNotification won't show 'Copy completed' before actually completing it. In case there's no progress, the notification spinner will go indeterminate before waiting 5 secs for progress to resume. It'll resume from there when there's a progress.\r\nShould also fix the race condition for starting the first service instance which some people faced earlier.\r\n\r\nFixes #785 \r\nFixes #874\r\nFixes #887","created_at":"2018-03-13T17:12:03Z","updated_at":"2018-03-14T10:30:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e438e4b7213be3940cc1b4dd3fd89bb4a3bbb4f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"TranceLove","id":251819,"avatar_url":"https://avatars0.githubusercontent.com/u/251819?v=4","gravatar_id":"","url":"https://api.github.com/users/TranceLove","html_url":"https://github.com/TranceLove","followers_url":"https://api.github.com/users/TranceLove/followers","following_url":"https://api.github.com/users/TranceLove/following{/other_user}","gists_url":"https://api.github.com/users/TranceLove/gists{/gist_id}","starred_url":"https://api.github.com/users/TranceLove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TranceLove/subscriptions","organizations_url":"https://api.github.com/users/TranceLove/orgs","repos_url":"https://api.github.com/users/TranceLove/repos","events_url":"https://api.github.com/users/TranceLove/events{/privacy}","received_events_url":"https://api.github.com/users/TranceLove/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/pulls/1108/commits","review_comments_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/pulls/1108/comments","review_comment_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/issues/1108/comments","statuses_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/statuses/46f1097f99bff9663c55b6cbfcf4676cf3536569","head":{"label":"TeamAmaze:fix-watcher-progress-retry","ref":"fix-watcher-progress-retry","sha":"46f1097f99bff9663c55b6cbfcf4676cf3536569","user":{"login":"TeamAmaze","id":30984365,"avatar_url":"https://avatars0.githubusercontent.com/u/30984365?v=4","gravatar_id":"","url":"https://api.github.com/users/TeamAmaze","html_url":"https://github.com/TeamAmaze","followers_url":"https://api.github.com/users/TeamAmaze/followers","following_url":"https://api.github.com/users/TeamAmaze/following{/other_user}","gists_url":"https://api.github.com/users/TeamAmaze/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamAmaze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamAmaze/subscriptions","organizations_url":"https://api.github.com/users/TeamAmaze/orgs","repos_url":"https://api.github.com/users/TeamAmaze/repos","events_url":"https://api.github.com/users/TeamAmaze/events{/privacy}","received_events_url":"https://api.github.com/users/TeamAmaze/received_events","type":"Organization","site_admin":false},"repo":{"id":21833183,"name":"AmazeFileManager","full_name":"TeamAmaze/AmazeFileManager","owner":{"login":"TeamAmaze","id":30984365,"avatar_url":"https://avatars0.githubusercontent.com/u/30984365?v=4","gravatar_id":"","url":"https://api.github.com/users/TeamAmaze","html_url":"https://github.com/TeamAmaze","followers_url":"https://api.github.com/users/TeamAmaze/followers","following_url":"https://api.github.com/users/TeamAmaze/following{/other_user}","gists_url":"https://api.github.com/users/TeamAmaze/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamAmaze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamAmaze/subscriptions","organizations_url":"https://api.github.com/users/TeamAmaze/orgs","repos_url":"https://api.github.com/users/TeamAmaze/repos","events_url":"https://api.github.com/users/TeamAmaze/events{/privacy}","received_events_url":"https://api.github.com/users/TeamAmaze/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TeamAmaze/AmazeFileManager","description":"Material design file manager for Android","fork":false,"url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager","forks_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/forks","keys_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/teams","hooks_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/hooks","issue_events_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/issues/events{/number}","events_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/events","assignees_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/assignees{/user}","branches_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/branches{/branch}","tags_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/tags","blobs_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/git/refs{/sha}","trees_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/statuses/{sha}","languages_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/languages","stargazers_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/stargazers","contributors_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/contributors","subscribers_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/subscribers","subscription_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/subscription","commits_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/commits{/sha}","git_commits_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/git/commits{/sha}","comments_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/comments{/number}","issue_comment_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/issues/comments{/number}","contents_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/contents/{+path}","compare_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/merges","archive_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/downloads","issues_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/issues{/number}","pulls_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/pulls{/number}","milestones_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/milestones{/number}","notifications_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/labels{/name}","releases_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/releases{/id}","deployments_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/deployments","created_at":"2014-07-14T19:47:53Z","updated_at":"2018-03-14T06:41:40Z","pushed_at":"2018-03-13T17:12:04Z","git_url":"git://github.com/TeamAmaze/AmazeFileManager.git","ssh_url":"git@github.com:TeamAmaze/AmazeFileManager.git","clone_url":"https://github.com/TeamAmaze/AmazeFileManager.git","svn_url":"https://github.com/TeamAmaze/AmazeFileManager","homepage":"","size":43227,"stargazers_count":1777,"watchers_count":1777,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":610,"mirror_url":null,"archived":false,"open_issues_count":177,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":610,"open_issues":177,"watchers":1777,"default_branch":"master"}},"base":{"label":"TeamAmaze:master","ref":"master","sha":"d859f2508132a888f9f1fa64e7b0fb8669d7a09b","user":{"login":"TeamAmaze","id":30984365,"avatar_url":"https://avatars0.githubusercontent.com/u/30984365?v=4","gravatar_id":"","url":"https://api.github.com/users/TeamAmaze","html_url":"https://github.com/TeamAmaze","followers_url":"https://api.github.com/users/TeamAmaze/followers","following_url":"https://api.github.com/users/TeamAmaze/following{/other_user}","gists_url":"https://api.github.com/users/TeamAmaze/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamAmaze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamAmaze/subscriptions","organizations_url":"https://api.github.com/users/TeamAmaze/orgs","repos_url":"https://api.github.com/users/TeamAmaze/repos","events_url":"https://api.github.com/users/TeamAmaze/events{/privacy}","received_events_url":"https://api.github.com/users/TeamAmaze/received_events","type":"Organization","site_admin":false},"repo":{"id":21833183,"name":"AmazeFileManager","full_name":"TeamAmaze/AmazeFileManager","owner":{"login":"TeamAmaze","id":30984365,"avatar_url":"https://avatars0.githubusercontent.com/u/30984365?v=4","gravatar_id":"","url":"https://api.github.com/users/TeamAmaze","html_url":"https://github.com/TeamAmaze","followers_url":"https://api.github.com/users/TeamAmaze/followers","following_url":"https://api.github.com/users/TeamAmaze/following{/other_user}","gists_url":"https://api.github.com/users/TeamAmaze/gists{/gist_id}","starred_url":"https://api.github.com/users/TeamAmaze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeamAmaze/subscriptions","organizations_url":"https://api.github.com/users/TeamAmaze/orgs","repos_url":"https://api.github.com/users/TeamAmaze/repos","events_url":"https://api.github.com/users/TeamAmaze/events{/privacy}","received_events_url":"https://api.github.com/users/TeamAmaze/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TeamAmaze/AmazeFileManager","description":"Material design file manager for Android","fork":false,"url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager","forks_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/forks","keys_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/teams","hooks_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/hooks","issue_events_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/issues/events{/number}","events_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/events","assignees_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/assignees{/user}","branches_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/branches{/branch}","tags_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/tags","blobs_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/git/refs{/sha}","trees_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/statuses/{sha}","languages_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/languages","stargazers_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/stargazers","contributors_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/contributors","subscribers_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/subscribers","subscription_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/subscription","commits_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/commits{/sha}","git_commits_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/git/commits{/sha}","comments_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/comments{/number}","issue_comment_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/issues/comments{/number}","contents_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/contents/{+path}","compare_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/merges","archive_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/downloads","issues_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/issues{/number}","pulls_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/pulls{/number}","milestones_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/milestones{/number}","notifications_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/labels{/name}","releases_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/releases{/id}","deployments_url":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/deployments","created_at":"2014-07-14T19:47:53Z","updated_at":"2018-03-14T06:41:40Z","pushed_at":"2018-03-13T17:12:04Z","git_url":"git://github.com/TeamAmaze/AmazeFileManager.git","ssh_url":"git@github.com:TeamAmaze/AmazeFileManager.git","clone_url":"https://github.com/TeamAmaze/AmazeFileManager.git","svn_url":"https://github.com/TeamAmaze/AmazeFileManager","homepage":"","size":43227,"stargazers_count":1777,"watchers_count":1777,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":610,"mirror_url":null,"archived":false,"open_issues_count":177,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":610,"open_issues":177,"watchers":1777,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/pulls/1108"},"html":{"href":"https://github.com/TeamAmaze/AmazeFileManager/pull/1108"},"issue":{"href":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/issues/1108"},"comments":{"href":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/issues/1108/comments"},"review_comments":{"href":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/pulls/1108/comments"},"review_comment":{"href":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/pulls/1108/commits"},"statuses":{"href":"https://api.github.com/repos/TeamAmaze/AmazeFileManager/statuses/46f1097f99bff9663c55b6cbfcf4676cf3536569"}},"author_association":"OWNER"}}
{"actor":{"display_login":"VishalNehra"}}