Toggle nav bar through power menu [1/2]

- This is highly based on this commit form SlimRoms: https://github.com/SlimRoms/frameworks_base/commit/4097a175f00fa0137169c4ae4a6bc35a2799c97f

Thanks again to kufikugel

Codes ported and new codes from cristianomatos

Change-Id: I75ea9623d3701fc01ec56a504be5e6a5fcad3cc1
Merge "Toggle nav bar through power menu [1/2]" into du44