Revert "rm sHasPermanentMenuKey;"

This reverts commit 4cb245520557cf0d83b503201b2655fbfd2f9841.
Revert "Fix Menu Overflow Toggle"

This reverts commit 62c591d23035b70357fde4eda221594f0215658c.
Fix Menu Overflow Toggle

Toggle didn't work before, overflow would always show. Original authors: BMc08GT & xLaMbChOpSx

Change-Id: I708ca65039dcf6aec673a729d159cedeeb56852d
Signed-off-by: ayysir <dresadd09691@gmail.com>
(cherry picked from commit 40cecbb92b349493d900ebfa8038dadb0d1076ea)