{"action":"created","issue":{"url":"https://api.github.com/repos/rengwuxian/MaterialEditText/issues/100","labels_url":"https://api.github.com/repos/rengwuxian/MaterialEditText/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/rengwuxian/MaterialEditText/issues/100/comments","events_url":"https://api.github.com/repos/rengwuxian/MaterialEditText/issues/100/events","html_url":"https://github.com/rengwuxian/MaterialEditText/issues/100","id":56236199,"number":100,"title":"Lots of IInputConnectionWrapper warnings in the log","user":{"login":"deakjahn","id":2234271,"avatar_url":"https://avatars.githubusercontent.com/u/2234271?v=3","gravatar_id":"","url":"https://api.github.com/users/deakjahn","html_url":"https://github.com/deakjahn","followers_url":"https://api.github.com/users/deakjahn/followers","following_url":"https://api.github.com/users/deakjahn/following{/other_user}","gists_url":"https://api.github.com/users/deakjahn/gists{/gist_id}","starred_url":"https://api.github.com/users/deakjahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deakjahn/subscriptions","organizations_url":"https://api.github.com/users/deakjahn/orgs","repos_url":"https://api.github.com/users/deakjahn/repos","events_url":"https://api.github.com/users/deakjahn/events{/privacy}","received_events_url":"https://api.github.com/users/deakjahn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-02T13:25:14Z","updated_at":"2015-02-02T14:31:28Z","closed_at":"2015-02-02T14:31:28Z","body":"Not a huge problem but it causes lots of similar entries in LogCat and creates noise:\r\n\r\n    W/IInputConnectionWrapper(21214): getTextBeforeCursor on inactive InputConnection\r\n    W/IInputConnectionWrapper(21214): getSelectedText on inactive InputConnection\r\n    W/IInputConnectionWrapper(21214): getTextBeforeCursor on inactive InputConnection\r\n    W/IInputConnectionWrapper(21214): getTextAfterCursor on inactive InputConnection\r\n\r\nin `MaterialDialog.initText()`, use\r\n\r\n      getText().clear();\r\n\r\nto clear the text instead of passing null to `setText()`. Also, two lines below, check for an empty text before you set it repeatedly.\r\n\r\n      if (!TextUtils.isEmpty(text))\r\n        setText(text);\r\n\r\nIt's apparently these fast repeated `setText(null)`'s that lead to the warnings."},"comment":{"url":"https://api.github.com/repos/rengwuxian/MaterialEditText/issues/comments/72466146","html_url":"https://github.com/rengwuxian/MaterialEditText/issues/100#issuecomment-72466146","issue_url":"https://api.github.com/repos/rengwuxian/MaterialEditText/issues/100","id":72466146,"user":{"login":"deakjahn","id":2234271,"avatar_url":"https://avatars.githubusercontent.com/u/2234271?v=3","gravatar_id":"","url":"https://api.github.com/users/deakjahn","html_url":"https://github.com/deakjahn","followers_url":"https://api.github.com/users/deakjahn/followers","following_url":"https://api.github.com/users/deakjahn/following{/other_user}","gists_url":"https://api.github.com/users/deakjahn/gists{/gist_id}","starred_url":"https://api.github.com/users/deakjahn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deakjahn/subscriptions","organizations_url":"https://api.github.com/users/deakjahn/orgs","repos_url":"https://api.github.com/users/deakjahn/repos","events_url":"https://api.github.com/users/deakjahn/events{/privacy}","received_events_url":"https://api.github.com/users/deakjahn/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T14:31:28Z","updated_at":"2015-02-02T14:31:28Z","body":"Sorry, false alarm. It's somewhere else. Closing it down."}}