Fix menu hiding logic

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