{"action":"created","issue":{"url":"https://api.github.com/repos/umano/AndroidSlidingUpPanel/issues/422","labels_url":"https://api.github.com/repos/umano/AndroidSlidingUpPanel/issues/422/labels{/name}","comments_url":"https://api.github.com/repos/umano/AndroidSlidingUpPanel/issues/422/comments","events_url":"https://api.github.com/repos/umano/AndroidSlidingUpPanel/issues/422/events","html_url":"https://github.com/umano/AndroidSlidingUpPanel/issues/422","id":65694357,"number":422,"title":"mLayout.setPanelState(EXPANDED) doesn't work in onResume()","user":{"login":"jndefosse","id":5968328,"avatar_url":"https://avatars.githubusercontent.com/u/5968328?v=3","gravatar_id":"","url":"https://api.github.com/users/jndefosse","html_url":"https://github.com/jndefosse","followers_url":"https://api.github.com/users/jndefosse/followers","following_url":"https://api.github.com/users/jndefosse/following{/other_user}","gists_url":"https://api.github.com/users/jndefosse/gists{/gist_id}","starred_url":"https://api.github.com/users/jndefosse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jndefosse/subscriptions","organizations_url":"https://api.github.com/users/jndefosse/orgs","repos_url":"https://api.github.com/users/jndefosse/repos","events_url":"https://api.github.com/users/jndefosse/events{/privacy}","received_events_url":"https://api.github.com/users/jndefosse/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-01T14:07:08Z","updated_at":"2015-04-16T14:55:55Z","closed_at":null,"body":"Hi,\r\n\r\nI use your library before the update. I update the version but i have some problem.\r\n\r\nIn my app, in the onResume method, i used the fonction \"expand()\" for expand the slider and it was worked perfectly.\r\n\r\nSince the update, the only way to expand is to use setPanelState but the slide doesn't expand with this method. If i click, the panel slide of course but I need the Slider expand.\r\n\r\nI can't use the umanoInitialState in the xml because the user choose if the slider must be expand or must be collapse at the launch  of the app.\r\n\r\nHow can I fix it?"},"comment":{"url":"https://api.github.com/repos/umano/AndroidSlidingUpPanel/issues/comments/93755382","html_url":"https://github.com/umano/AndroidSlidingUpPanel/issues/422#issuecomment-93755382","issue_url":"https://api.github.com/repos/umano/AndroidSlidingUpPanel/issues/422","id":93755382,"user":{"login":"jndefosse","id":5968328,"avatar_url":"https://avatars.githubusercontent.com/u/5968328?v=3","gravatar_id":"","url":"https://api.github.com/users/jndefosse","html_url":"https://github.com/jndefosse","followers_url":"https://api.github.com/users/jndefosse/followers","following_url":"https://api.github.com/users/jndefosse/following{/other_user}","gists_url":"https://api.github.com/users/jndefosse/gists{/gist_id}","starred_url":"https://api.github.com/users/jndefosse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jndefosse/subscriptions","organizations_url":"https://api.github.com/users/jndefosse/orgs","repos_url":"https://api.github.com/users/jndefosse/repos","events_url":"https://api.github.com/users/jndefosse/events{/privacy}","received_events_url":"https://api.github.com/users/jndefosse/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T14:55:55Z","updated_at":"2015-04-16T14:55:55Z","body":"It's work with a delay:\r\n\r\n                final Handler handler = new Handler();\r\n                handler.postDelayed(new Runnable() {\r\n                    @Override\r\n                    public void run() {\r\n                        //Do something after 1000ms\r\n                        Log.d(TAG, \"Set Panel State : Expanded\");\r\n                        mLayout.setPanelState(EXPANDED);\r\n                    }\r\n                }, 1000);"}}