safer restore of setAnimationsEnabled state in view layouts