JimiSmith / PinnedHeaderListView

A ListView with pinned section headers for Android
663 stars 306 forks source link

fix a bug when run on meizu mx 3 #31

Open wuliao518 opened 9 years ago

wuliao518 commented 9 years ago

if (pinnedHeaderHeight >= headerTop && headerTop > 0) { mHeaderOffset = headerTop - header.getHeight(); } else if (headerTop < 0) { header.setVisibility(INVISIBLE); } In the meizu mx 3, headerTop can greater than pinnedHeaderHeight when firstVisibleItem equals 0.So the header can strike twice.