profiles: refactor set expanded desktop in profiles for immersive desktop [1/2]

expanded desktop is outdated so the following change was reverted.  this commit brings it back
to be compatible with our improvements.
https://github.com/VanirAOSP/frameworks_base/commit/0501cc6e9b95a47eac0428fe5ad0a8a2cb8fcc43

Change-Id: I92f6f97c4d9487d5a4585b65c53ce251a50dfe2e