Only change expanded desktop state when statusbar is hidden

Change-Id: I40848e0cf1daf061e5e4330f7ca178080f719262