I\'m following the example method to add a compatible preference/ fragment dialog found here. When doing so, I have found that if I have preferences that are Integers, Boolean,
private static void bindPreferenceSummaryToValue(Preference preference) {
//Todo
}
this method is used for showing the current value of your preference,
e.g If you'r using which has value as true or false
it will display that value in summary.
You do not need to show boolean values as summary.
This method is used for or
where you would like to see current value. Summary in this case is string but for it's boolean. Either you can ignore these boolean summary or can using the instanceof you can avoid exception.