kolavar/android-support-v4-preferencefragment — pull request #10 by akent (2014-11-25 22:13:17+00:00)
Title: Fix off-by-one bug with header views for API 10

If you add a header view to your list, on API 10 and earlier there is a bug that means the preference click is off-by-one.

It was fixed upstream here: https://github.com/android/platform_frameworks_base/commit/2d43d283fc0f22b08f43c6db4da71031168e7f59

... but to fix it retrospectively, this patch uses reflection to override the onItemClick handler to fix the behaviour in the same way as the upstream fix.