Fixed an issue with the adapter not working with older versions of
android.