Cardslibg: Fix list is jumping on corner cases
Cardslibg: Fix list is jumping on corner cases

Thanks to sh0rtshift. Slightly adjusted.

Change-Id: I48325fd38f5d0451fcecc524136a783cc9ff0c00

BrokenROM/frameworks_opt_cards,PAC-ROM/android_frameworks_opt_cards,Euphoria-OS/android_frameworks_opt_cards,PAC-man/android_frameworks_opt_cards,CMRemix/frameworks_opt_cards,Fusion-Rom/android_frameworks_opt_cards,ABIP/android_frameworks_opt_cards,tilaksidduram/frameworks_opt_cards,temasek/frameworks_opt_cards,PixelROM/frameworks_opt_cards,IllusionRom-deprecated/android_platform_frameworks_opt_cards,CarbonROM/frameworks_opt_cards,ResurrectionRemix/frameworks_opt_cards,FusionSP/android_frameworks_opt_cards,DirtyUnicorns/android_frameworks_opt_cards,StelixROM/frameworks_opt_cards,Mahdi-Rom/android_frameworks_opt_cards,VRToxin/android_frameworks_opt_cards,androidfilesharing/android_frameworks_opt_cards,AICP/frameworks_opt_cards,fallouttester/frameworks_opt_cards,SOKP/frameworks_opt_cards,IllusionLP/frameworks_opt_cards,Tesla-Redux/frameworks_opt_cards,OwnROM/android_frameworks_opt_cards,donghaomin/platform_frameworks_opt_cards,SlimRoms/frameworks_opt_cards,mydongistiny/android_frameworks_opt_cards,scotthartbti/frameworks_opt_cards,VRToxin-AOSP/android_frameworks_opt_cards