{"action":"opened","issue":{"url":"https://api.github.com/repos/AndroidDeveloperLB/MaterialPreferenceLibrary/issues/17","labels_url":"https://api.github.com/repos/AndroidDeveloperLB/MaterialPreferenceLibrary/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/AndroidDeveloperLB/MaterialPreferenceLibrary/issues/17/comments","events_url":"https://api.github.com/repos/AndroidDeveloperLB/MaterialPreferenceLibrary/issues/17/events","html_url":"https://github.com/AndroidDeveloperLB/MaterialPreferenceLibrary/issues/17","id":102544797,"number":17,"title":"SwitchPreference error","user":{"login":"jemshit","id":1948828,"avatar_url":"https://avatars.githubusercontent.com/u/1948828?v=3","gravatar_id":"","url":"https://api.github.com/users/jemshit","html_url":"https://github.com/jemshit","followers_url":"https://api.github.com/users/jemshit/followers","following_url":"https://api.github.com/users/jemshit/following{/other_user}","gists_url":"https://api.github.com/users/jemshit/gists{/gist_id}","starred_url":"https://api.github.com/users/jemshit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jemshit/subscriptions","organizations_url":"https://api.github.com/users/jemshit/orgs","repos_url":"https://api.github.com/users/jemshit/repos","events_url":"https://api.github.com/users/jemshit/events{/privacy}","received_events_url":"https://api.github.com/users/jemshit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-22T15:30:15Z","updated_at":"2015-08-22T15:30:15Z","closed_at":null,"body":"I'm getting wrong value when Clicked on switchpreference, when i switch on , it returns \"false\", when i switched off it returns \"true\". But if check its values before clicking, it returns right value\r\n\r\n```\r\n<com.lb.material_preferences_library.custom_preferences.SwitchPreference\r\n            android:defaultValue=\"false\"\r\n            android:key=\"switchPreference\"  \r\n            android:title=\"@string/\"\r\n            app:summaryOff=\"@string/\"\r\n            app:summaryOn=\"@string/\" />\r\n\r\nSwitchPreference notificationPreference=(SwitchPreference)findPreference(\"switchPreference\");\r\n        notificationPreference.setOnPreferenceChangeListener(new android.preference.Preference.OnPreferenceChangeListener() {\r\n            @Override\r\n            public boolean onPreferenceChange(android.preference.Preference preference, Object newValue) {\r\n                ...\r\n                return true;\r\n            }\r\n        });\r\n```"}}