{"action":"created","issue":{"url":"https://api.github.com/repos/roughike/BottomBar/issues/451","repository_url":"https://api.github.com/repos/roughike/BottomBar","labels_url":"https://api.github.com/repos/roughike/BottomBar/issues/451/labels{/name}","comments_url":"https://api.github.com/repos/roughike/BottomBar/issues/451/comments","events_url":"https://api.github.com/repos/roughike/BottomBar/issues/451/events","html_url":"https://github.com/roughike/BottomBar/issues/451","id":173632924,"number":451,"title":"How to get current tab position correctly?","user":{"login":"caibirdcnb","id":20416108,"avatar_url":"https://avatars.githubusercontent.com/u/20416108?v=3","gravatar_id":"","url":"https://api.github.com/users/caibirdcnb","html_url":"https://github.com/caibirdcnb","followers_url":"https://api.github.com/users/caibirdcnb/followers","following_url":"https://api.github.com/users/caibirdcnb/following{/other_user}","gists_url":"https://api.github.com/users/caibirdcnb/gists{/gist_id}","starred_url":"https://api.github.com/users/caibirdcnb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caibirdcnb/subscriptions","organizations_url":"https://api.github.com/users/caibirdcnb/orgs","repos_url":"https://api.github.com/users/caibirdcnb/repos","events_url":"https://api.github.com/users/caibirdcnb/events{/privacy}","received_events_url":"https://api.github.com/users/caibirdcnb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/roughike/BottomBar/labels/v2","name":"v2","color":"1d76db"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-28T06:53:52Z","updated_at":"2016-09-21T06:33:15Z","closed_at":null,"body":"Why I got 0, not 2?\r\n\r\nThe Log.e result of below code: E/currTabPosition: 0\r\n\r\n    int temp=2;\r\n\r\n    // I tried both, any one of them\r\n    bottomBar.setDefaultTabPosition(temp); \r\n    bottomBar.selectTabAtPosition(temp);\r\n\r\n    temp = bottomBar.getCurrentTabPosition();\r\n\r\n    Log.e(\"currTabPosition\", \"\"+temp);\r\n\r\nAbove is outside the listener, I did an experiment put getCurrentTabPosition() inside the onTabSelected, it seems working correctly. (but always 0 before any click on the tab, even I set default tab >0)"},"comment":{"url":"https://api.github.com/repos/roughike/BottomBar/issues/comments/248523805","html_url":"https://github.com/roughike/BottomBar/issues/451#issuecomment-248523805","issue_url":"https://api.github.com/repos/roughike/BottomBar/issues/451","id":248523805,"user":{"login":"therajanmaurya","id":5724482,"avatar_url":"https://avatars.githubusercontent.com/u/5724482?v=3","gravatar_id":"","url":"https://api.github.com/users/therajanmaurya","html_url":"https://github.com/therajanmaurya","followers_url":"https://api.github.com/users/therajanmaurya/followers","following_url":"https://api.github.com/users/therajanmaurya/following{/other_user}","gists_url":"https://api.github.com/users/therajanmaurya/gists{/gist_id}","starred_url":"https://api.github.com/users/therajanmaurya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/therajanmaurya/subscriptions","organizations_url":"https://api.github.com/users/therajanmaurya/orgs","repos_url":"https://api.github.com/users/therajanmaurya/repos","events_url":"https://api.github.com/users/therajanmaurya/events{/privacy}","received_events_url":"https://api.github.com/users/therajanmaurya/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T06:33:15Z","updated_at":"2016-09-21T06:33:15Z","body":"I have tried this. It works for me.\r\n\r\nbottomBar.setDefaultTab(R.id.tab3);\r\n\r\nId is the Id or the Tab."}}
{"actor":{"display_login":"therajanmaurya"}}