CardView: fix if statements checking the wrong things

Signed-off-by: Simon Busch <morphis@gravedo.de>