{"action":"opened","issue":{"url":"https://api.github.com/repos/viezel/NappDrawer/issues/181","labels_url":"https://api.github.com/repos/viezel/NappDrawer/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/viezel/NappDrawer/issues/181/comments","events_url":"https://api.github.com/repos/viezel/NappDrawer/issues/181/events","html_url":"https://github.com/viezel/NappDrawer/issues/181","id":103591869,"number":181,"title":"showDatePickerDialog crash the app","user":{"login":"PietroGranati","id":7056350,"avatar_url":"https://avatars.githubusercontent.com/u/7056350?v=3","gravatar_id":"","url":"https://api.github.com/users/PietroGranati","html_url":"https://github.com/PietroGranati","followers_url":"https://api.github.com/users/PietroGranati/followers","following_url":"https://api.github.com/users/PietroGranati/following{/other_user}","gists_url":"https://api.github.com/users/PietroGranati/gists{/gist_id}","starred_url":"https://api.github.com/users/PietroGranati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PietroGranati/subscriptions","organizations_url":"https://api.github.com/users/PietroGranati/orgs","repos_url":"https://api.github.com/users/PietroGranati/repos","events_url":"https://api.github.com/users/PietroGranati/events{/privacy}","received_events_url":"https://api.github.com/users/PietroGranati/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-27T20:46:40Z","updated_at":"2015-08-27T20:46:40Z","closed_at":null,"body":"I've always used showDatePickerDialog and works, when I add the menu and try to call that an error occurs:\r\n\r\n[ERROR] :  TiApplication: (KrollRuntimeThread) [1774,1774] Sending event: exception on thread: KrollRuntimeThread msg:android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.; Titanium 4.1.0,2015/07/06 11:15,d57aa7d\r\n[ERROR] :  TiApplication: android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.\r\n[ERROR] :  TiApplication: \tat android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6264)\r\n[ERROR] :  TiApplication: \tat android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:871)\r\n[ERROR] :  TiApplication: \tat android.view.View.requestLayout(View.java:17454)\r\n[ERROR] :  TiApplication: \tat android.view.View.requestLayout(View.java:17454)\r\n[ERROR] :  TiApplication: \tat android.widget.RelativeLayout.requestLayout(RelativeLayout.java:361)\r\n[ERROR] :  TiApplication: \tat android.view.View.requestLayout(View.java:17454)\r\n[ERROR] :  TiApplication: \tat android.view.View.requestLayout(View.java:17454)\r\n[ERROR] :  TiApplication: \tat android.view.View.requestLayout(View.java:17454)\r\n[ERROR] :  TiApplication: \tat android.view.View.requestLayout(View.java:17454)\r\n[ERROR] :  TiApplication: \tat android.view.View.requestLayout(View.java:17454)\r\n[ERROR] :  TiApplication: \tat android.view.View.requestLayout(View.java:17454)\r\n[ERROR] :  TiApplication: \tat android.view.ViewGroup.addView(ViewGroup.java:3732)\r\n[ERROR] :  TiApplication: \tat android.view.ViewGroup.addView(ViewGroup.java:3710)\r\n[ERROR] :  TiApplication: \tat android.support.v7.widget.Toolbar.addSystemView(Toolbar.java:1034)\r\n[ERROR] :  TiApplication: \tat android.support.v7.widget.Toolbar.ensureMenuView(Toolbar.java:846)\r\n[ERROR] :  TiApplication: \tat android.support.v7.widget.Toolbar.setMenu(Toolbar.java:377)\r\n[ERROR] :  TiApplication: \tat android.support.v7.internal.widget.ToolbarWidgetWrapper.setMenu(ToolbarWidgetWrapper.java:414)\r\n[ERROR] :  TiApplication: \tat android.support.v7.internal.widget.ActionBarOverlayLayout.setMenu(ActionBarOverlayLayout.java:780)\r\n[ERROR] :  TiApplication: \tat android.support.v7.app.AppCompatDelegateImplV7.preparePanel(AppCompatDelegateImplV7.java:1083)\r\n[ERROR] :  TiApplication: \tat android.support.v7.app.AppCompatDelegateImplV7.doInvalidatePanelMenu(AppCompatDelegateImplV7.java:1374)\r\n[ERROR] :  TiApplication: \tat android.support.v7.app.AppCompatDelegateImplV7.access$100(AppCompatDelegateImplV7.java:89)\r\n[ERROR] :  TiApplication: \tat android.support.v7.app.AppCompatDelegateImplV7$1.run(AppCompatDelegateImplV7.java:126)\r\n[ERROR] :  TiApplication: \tat android.os.Handler.handleCallback(Handler.java:739)\r\n[ERROR] :  TiApplication: \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n[ERROR] :  TiApplication: \tat android.os.Looper.loop(Looper.java:211)\r\n[ERROR] :  TiApplication: \tat org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)"}}