{"action":"created","issue":{"url":"https://api.github.com/repos/Bilibili/drawee-text-view/issues/5","repository_url":"https://api.github.com/repos/Bilibili/drawee-text-view","labels_url":"https://api.github.com/repos/Bilibili/drawee-text-view/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Bilibili/drawee-text-view/issues/5/comments","events_url":"https://api.github.com/repos/Bilibili/drawee-text-view/issues/5/events","html_url":"https://github.com/Bilibili/drawee-text-view/issues/5","id":183548033,"number":5,"title":"Subsequent `setText` calls don't display images.","user":{"login":"mrkcsc","id":658964,"avatar_url":"https://avatars.githubusercontent.com/u/658964?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkcsc","html_url":"https://github.com/mrkcsc","followers_url":"https://api.github.com/users/mrkcsc/followers","following_url":"https://api.github.com/users/mrkcsc/following{/other_user}","gists_url":"https://api.github.com/users/mrkcsc/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkcsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkcsc/subscriptions","organizations_url":"https://api.github.com/users/mrkcsc/orgs","repos_url":"https://api.github.com/users/mrkcsc/repos","events_url":"https://api.github.com/users/mrkcsc/events{/privacy}","received_events_url":"https://api.github.com/users/mrkcsc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-17T22:45:51Z","updated_at":"2016-11-14T02:18:43Z","closed_at":null,"body":"Hello - I have found that after calling `setText` on the same `DraweeTextView` twice, images no longer get displayed.\n\nThis is observed in places where re-use happens like a `RecyclerView`.\n\nAn example that show this behavior:\n\n``` java\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_main);\n\n        final TextView textView = (TextView) findViewById(R.id.text_view);\n\n        textView.setText(getSampleText());\n\n        new Handler().postDelayed(new Runnable() {\n            public void run() {\n                textView.setText(getSampleText());\n            }\n        }, 5000);\n    }\n\n    private SpannableStringBuilder getSampleText() {\n        int start;\n        SpannableStringBuilder builder = new SpannableStringBuilder();\n        builder.append(\"2333333\\n\");\n        start = builder.length();\n        builder.append(\"[emotion:tv_cheers]\");\n        DraweeSpan span = new DraweeSpan.Builder(\"http://static.yo9.com/web/emotions/tv_cheers.png\").build();\n        builder.setSpan(span, start, builder.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n        builder.append(\"bilibili- ( ゜- ゜)つロ 乾杯~\\n\");\n\n        return builder;\n    }\n```\n\nThe second `setText` will no longer show the image.\n\nPS: This is a great library, thanks for making it available :)\n"},"comment":{"url":"https://api.github.com/repos/Bilibili/drawee-text-view/issues/comments/260233680","html_url":"https://github.com/Bilibili/drawee-text-view/issues/5#issuecomment-260233680","issue_url":"https://api.github.com/repos/Bilibili/drawee-text-view/issues/5","id":260233680,"user":{"login":"yrom","id":2888674,"avatar_url":"https://avatars.githubusercontent.com/u/2888674?v=3","gravatar_id":"","url":"https://api.github.com/users/yrom","html_url":"https://github.com/yrom","followers_url":"https://api.github.com/users/yrom/followers","following_url":"https://api.github.com/users/yrom/following{/other_user}","gists_url":"https://api.github.com/users/yrom/gists{/gist_id}","starred_url":"https://api.github.com/users/yrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yrom/subscriptions","organizations_url":"https://api.github.com/users/yrom/orgs","repos_url":"https://api.github.com/users/yrom/repos","events_url":"https://api.github.com/users/yrom/events{/privacy}","received_events_url":"https://api.github.com/users/yrom/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T02:18:43Z","updated_at":"2016-11-14T02:18:43Z","body":"I have not run into this problem in using RecyclerView, calling `setText()` in ViewHolder's `onBind()`"}}
{"actor":{"display_login":"yrom"}}