{"action":"created","issue":{"url":"https://api.github.com/repos/henrytao-me/smooth-app-bar-layout/issues/59","repository_url":"https://api.github.com/repos/henrytao-me/smooth-app-bar-layout","labels_url":"https://api.github.com/repos/henrytao-me/smooth-app-bar-layout/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/henrytao-me/smooth-app-bar-layout/issues/59/comments","events_url":"https://api.github.com/repos/henrytao-me/smooth-app-bar-layout/issues/59/events","html_url":"https://github.com/henrytao-me/smooth-app-bar-layout/issues/59","id":129194448,"number":59,"title":"The first page of a ViewPager doesn't work when setAdapter is asynchronized","user":{"login":"junyuecao","id":1000408,"avatar_url":"https://avatars.githubusercontent.com/u/1000408?v=3","gravatar_id":"","url":"https://api.github.com/users/junyuecao","html_url":"https://github.com/junyuecao","followers_url":"https://api.github.com/users/junyuecao/followers","following_url":"https://api.github.com/users/junyuecao/following{/other_user}","gists_url":"https://api.github.com/users/junyuecao/gists{/gist_id}","starred_url":"https://api.github.com/users/junyuecao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junyuecao/subscriptions","organizations_url":"https://api.github.com/users/junyuecao/orgs","repos_url":"https://api.github.com/users/junyuecao/repos","events_url":"https://api.github.com/users/junyuecao/events{/privacy}","received_events_url":"https://api.github.com/users/junyuecao/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-27T16:22:23Z","updated_at":"2016-02-13T04:11:41Z","closed_at":"2016-02-13T04:11:41Z","body":"The data of my adapter of the ViewPager is fetched from a asynchronized API so setAdapter will be called after the BaseBehavior's onMeasureChild. So that the first page of the ViewPager does not work.\r\nOnce I switched between pages of the ViewPager everything works fine."},"comment":{"url":"https://api.github.com/repos/henrytao-me/smooth-app-bar-layout/issues/comments/183584296","html_url":"https://github.com/henrytao-me/smooth-app-bar-layout/issues/59#issuecomment-183584296","issue_url":"https://api.github.com/repos/henrytao-me/smooth-app-bar-layout/issues/59","id":183584296,"user":{"login":"henrytao-me","id":5274722,"avatar_url":"https://avatars.githubusercontent.com/u/5274722?v=3","gravatar_id":"","url":"https://api.github.com/users/henrytao-me","html_url":"https://github.com/henrytao-me","followers_url":"https://api.github.com/users/henrytao-me/followers","following_url":"https://api.github.com/users/henrytao-me/following{/other_user}","gists_url":"https://api.github.com/users/henrytao-me/gists{/gist_id}","starred_url":"https://api.github.com/users/henrytao-me/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrytao-me/subscriptions","organizations_url":"https://api.github.com/users/henrytao-me/orgs","repos_url":"https://api.github.com/users/henrytao-me/repos","events_url":"https://api.github.com/users/henrytao-me/events{/privacy}","received_events_url":"https://api.github.com/users/henrytao-me/received_events","type":"User","site_admin":false},"created_at":"2016-02-13T04:11:41Z","updated_at":"2016-02-13T04:11:41Z","body":"I think this issue is fixed in v1.0.2 and above. Check it out. @junyuecao "}}