{"action":"created","issue":{"url":"https://api.github.com/repos/AlexLiuSheng/CheckVersionLib/issues/43","repository_url":"https://api.github.com/repos/AlexLiuSheng/CheckVersionLib","labels_url":"https://api.github.com/repos/AlexLiuSheng/CheckVersionLib/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/AlexLiuSheng/CheckVersionLib/issues/43/comments","events_url":"https://api.github.com/repos/AlexLiuSheng/CheckVersionLib/issues/43/events","html_url":"https://github.com/AlexLiuSheng/CheckVersionLib/issues/43","id":260136215,"number":43,"title":"弹出更新对话框后，点击“确定”或者“取消”时会有一闪而过的痕迹。。。","user":{"login":"Aarondue","id":8734693,"avatar_url":"https://avatars2.githubusercontent.com/u/8734693?v=4","gravatar_id":"","url":"https://api.github.com/users/Aarondue","html_url":"https://github.com/Aarondue","followers_url":"https://api.github.com/users/Aarondue/followers","following_url":"https://api.github.com/users/Aarondue/following{/other_user}","gists_url":"https://api.github.com/users/Aarondue/gists{/gist_id}","starred_url":"https://api.github.com/users/Aarondue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aarondue/subscriptions","organizations_url":"https://api.github.com/users/Aarondue/orgs","repos_url":"https://api.github.com/users/Aarondue/repos","events_url":"https://api.github.com/users/Aarondue/events{/privacy}","received_events_url":"https://api.github.com/users/Aarondue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-25T02:06:58Z","updated_at":"2017-09-25T02:44:51Z","closed_at":null,"author_association":"NONE","body":"弹出更新对话框后，点击“确定”或者“取消”时会有一闪而过的痕迹。。。这应该是退出activity的动画效果，不过也很影响用户体验的，可以优化下么"},"comment":{"url":"https://api.github.com/repos/AlexLiuSheng/CheckVersionLib/issues/comments/331763744","html_url":"https://github.com/AlexLiuSheng/CheckVersionLib/issues/43#issuecomment-331763744","issue_url":"https://api.github.com/repos/AlexLiuSheng/CheckVersionLib/issues/43","id":331763744,"user":{"login":"Aarondue","id":8734693,"avatar_url":"https://avatars2.githubusercontent.com/u/8734693?v=4","gravatar_id":"","url":"https://api.github.com/users/Aarondue","html_url":"https://github.com/Aarondue","followers_url":"https://api.github.com/users/Aarondue/followers","following_url":"https://api.github.com/users/Aarondue/following{/other_user}","gists_url":"https://api.github.com/users/Aarondue/gists{/gist_id}","starred_url":"https://api.github.com/users/Aarondue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aarondue/subscriptions","organizations_url":"https://api.github.com/users/Aarondue/orgs","repos_url":"https://api.github.com/users/Aarondue/repos","events_url":"https://api.github.com/users/Aarondue/events{/privacy}","received_events_url":"https://api.github.com/users/Aarondue/received_events","type":"User","site_admin":false},"created_at":"2017-09-25T02:44:51Z","updated_at":"2017-09-25T02:44:51Z","author_association":"NONE","body":"我改动代码之后使用方式如下（我直接可以传入线程的downUrl即可，不需要请求后得到）：\r\n        VersionParams.Builder builder = new VersionParams.Builder()\r\n                .setService(VersionUpdateService.class)\r\n                .setCustomDownloadActivityClass(CustomDialogActivity.class)\r\n                .setDownloadUrl(RetrofitClient.URL + entity.getCurVerUrl())\r\n                .setForceUpdate(forceUpdate)\r\n                .setTitle(\"更新内容\")\r\n                .setUpdateMsg(entity.getUpdateInfo())\r\n                .setPositiveText(\"立即更新\")\r\n                .setNegativeText(negativeText);\r\n        AllenChecker.startVersionCheck(mContext, builder.build());\r\n\r\n我在VersionParams中增加了downloadUrl 、title 等属性，这样在AVersionService和VersionDialogActivity中只需要传一个参数（VersionParams）就可以，岂不更方面。\r\n    public void showVersionDialog(String downloadUrl, String title, String updateMsg, Bundle paramBundle) {\r\n        this.downloadUrl = downloadUrl;\r\n        this.title = title;\r\n        this.updateMsg = updateMsg;\r\n        this.paramBundle = paramBundle;\r\n        if (versionParams.isSilentDownload()) {\r\n            BroadcastReceiver receiver=new VersionBroadCastReceiver();\r\n            IntentFilter intentFilter=new IntentFilter(PERMISSION_ACTION);\r\n            registerReceiver(receiver,intentFilter);\r\n            Intent intent=new Intent(this,PermissionDialogActivity.class);\r\n            intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n            startActivity(intent);\r\n        } else {\r\n            goToVersionDialog();\r\n        }\r\n    }\r\n"}}
{"actor":{"display_login":"Aarondue"}}