Don't call setAllowAnimation unless there is a state change. Also don't bother updating the rest of the state as it hasn't changed. Bug: 21337755 Change-Id: Ia3357e075c8e65fdb83232b685332c98e16c291d