{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/fresco/issues/992","repository_url":"https://api.github.com/repos/facebook/fresco","labels_url":"https://api.github.com/repos/facebook/fresco/issues/992/labels{/name}","comments_url":"https://api.github.com/repos/facebook/fresco/issues/992/comments","events_url":"https://api.github.com/repos/facebook/fresco/issues/992/events","html_url":"https://github.com/facebook/fresco/issues/992","id":133801011,"node_id":"MDU6SXNzdWUxMzM4MDEwMTE=","number":992,"title":"Circular reveal animation with Fresco","user":{"login":"shareyourlocationsite","id":1413665,"node_id":"MDQ6VXNlcjE0MTM2NjU=","avatar_url":"https://avatars2.githubusercontent.com/u/1413665?v=4","gravatar_id":"","url":"https://api.github.com/users/shareyourlocationsite","html_url":"https://github.com/shareyourlocationsite","followers_url":"https://api.github.com/users/shareyourlocationsite/followers","following_url":"https://api.github.com/users/shareyourlocationsite/following{/other_user}","gists_url":"https://api.github.com/users/shareyourlocationsite/gists{/gist_id}","starred_url":"https://api.github.com/users/shareyourlocationsite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shareyourlocationsite/subscriptions","organizations_url":"https://api.github.com/users/shareyourlocationsite/orgs","repos_url":"https://api.github.com/users/shareyourlocationsite/repos","events_url":"https://api.github.com/users/shareyourlocationsite/events{/privacy}","received_events_url":"https://api.github.com/users/shareyourlocationsite/received_events","type":"User","site_admin":false},"labels":[{"id":182304115,"node_id":"MDU6TGFiZWwxODIzMDQxMTU=","url":"https://api.github.com/repos/facebook/fresco/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-02-15T19:47:54Z","updated_at":"2018-07-12T14:51:46Z","closed_at":"2018-07-12T14:51:46Z","author_association":"NONE","body":"I need to make a circular reveal animation after the image is loaded by fresco in my android app. I listen to the download events as described here; http://frescolib.org/docs/listening-download-events.html#_ In the onFinalImageSet event I run the reveal effect as described here; http://developer.android.com/training/material/animations.html\n\nThe image is not shown. When I put a debug log to the onFinalImageSet event, I see that it's calling repeatedly. When I comment out the reveal function it's only called once, and works as expected. Somehow reveal effect triggers fresco to load the image over and over.\n"},"comment":{"url":"https://api.github.com/repos/facebook/fresco/issues/comments/404539790","html_url":"https://github.com/facebook/fresco/issues/992#issuecomment-404539790","issue_url":"https://api.github.com/repos/facebook/fresco/issues/992","id":404539790,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDUzOTc5MA==","user":{"login":"oprisnik","id":2699634,"node_id":"MDQ6VXNlcjI2OTk2MzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2699634?v=4","gravatar_id":"","url":"https://api.github.com/users/oprisnik","html_url":"https://github.com/oprisnik","followers_url":"https://api.github.com/users/oprisnik/followers","following_url":"https://api.github.com/users/oprisnik/following{/other_user}","gists_url":"https://api.github.com/users/oprisnik/gists{/gist_id}","starred_url":"https://api.github.com/users/oprisnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oprisnik/subscriptions","organizations_url":"https://api.github.com/users/oprisnik/orgs","repos_url":"https://api.github.com/users/oprisnik/repos","events_url":"https://api.github.com/users/oprisnik/events{/privacy}","received_events_url":"https://api.github.com/users/oprisnik/received_events","type":"User","site_admin":false},"created_at":"2018-07-12T14:51:46Z","updated_at":"2018-07-12T14:51:46Z","author_association":"CONTRIBUTOR","body":"The following code just works for me (changing https://github.com/facebook/fresco/blob/master/samples/showcase/src/main/java/com/facebook/fresco/samples/showcase/drawee/DraweeSimpleFragment.java:\r\n\r\n```java\r\n\r\n  @Override\r\n  public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {\r\n    final ImageUriProvider imageUriProvider = ImageUriProvider.getInstance(getContext());\r\n    final Uri uri = imageUriProvider.createSampleUri(ImageUriProvider.ImageSize.M);\r\n\r\n    final SimpleDraweeView simpleDraweeView = (SimpleDraweeView) view.findViewById(R.id.drawee_view);\r\n    simpleDraweeView.setController(Fresco.newDraweeControllerBuilder().setUri(uri).setControllerListener(new BaseControllerListener<ImageInfo>() {\r\n      @Override\r\n      public void onFinalImageSet(\r\n          String id,\r\n          @javax.annotation.Nullable ImageInfo imageInfo,\r\n          @javax.annotation.Nullable Animatable animatable) {\r\n        reveal(simpleDraweeView);\r\n      }\r\n    }).build());\r\n  }\r\n\r\n  private void reveal(final SimpleDraweeView simpleDraweeView) {\r\n      simpleDraweeView.setVisibility(View.INVISIBLE);\r\n      int cx = simpleDraweeView.getWidth() / 2;\r\n      int cy = simpleDraweeView.getHeight() / 2;\r\n\r\n      int finalRadius = Math.max(simpleDraweeView.getWidth(), simpleDraweeView.getHeight());\r\n\r\n      Animator animator = ViewAnimationUtils\r\n          .createCircularReveal(simpleDraweeView, cx, cy, 0, finalRadius);\r\n      animator.setDuration(3000);\r\n      animator.addListener(new Animator.AnimatorListener() {\r\n        @Override\r\n        public void onAnimationStart(Animator animation) {\r\n          simpleDraweeView.setVisibility(View.VISIBLE);\r\n        }\r\n\r\n        @Override\r\n        public void onAnimationEnd(Animator animation) {}\r\n\r\n        @Override\r\n        public void onAnimationCancel(Animator animation) {}\r\n\r\n        @Override\r\n        public void onAnimationRepeat(Animator animation) {}\r\n      });\r\n      animator.start();\r\n    }\r\n\r\n```"}}
{"actor":{"display_login":"oprisnik"}}