Only change expanded desktop state when statusbar is hidden

Change-Id: I40848e0cf1daf061e5e4330f7ca178080f719262
Merge remote-tracking branch 'sgt7/cm-10.1' into cm-10.1-sgt7-linaro