AOKP/frameworks_base — pull request #15 by JBirdVegas (2012-02-09 09:34:52+00:00)
Title: GlobalActions: allow power menu to be dynamic

the code as is works great for exactly one loading of the power menu

steps to reproduce bug:
from clean install, boot, change power menu settings, long hold power button calling GlobalActions(PowerMenu) then back out

now change a power menu setting and long hold power button again. GlobalActions doesn't look for new values because it found the previous alert dialog. This patch forces the power menu to check everything every time it is called.

pros:
+settings are checked on every power menu load

cons:
-I'm assuming they chose this route would be speed of dialog creation but our phones are fast and I don't notice a difference