Only initialize animation in tablet mode
Fix animation reset for API level < 11