diff options
author | Bruno Martins <bgcngm@gmail.com> | 2017-12-01 11:57:51 +0000 |
---|---|---|
committer | Bruno Martins <bgcngm@gmail.com> | 2018-01-12 13:42:21 +0000 |
commit | 26a3d1efbf6a576d901fcab6decdaedcbcd64172 (patch) | |
tree | fac0a403d774e7af1c4b1d9f5b3555212de6dee4 /sdk/src/java/lineageos/content/Intent.java | |
parent | c6d700a2faefd52a2af73817f31800ca487f16f4 (diff) |
lineage-sdk: Add broadcast action for power menu update
This action used to be defined in the frameworks, but can be placed
here from now on.
Change-Id: I7886c682aea97be40d2dcd0b8f147acb660193ab
Diffstat (limited to 'sdk/src/java/lineageos/content/Intent.java')
-rw-r--r-- | sdk/src/java/lineageos/content/Intent.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sdk/src/java/lineageos/content/Intent.java b/sdk/src/java/lineageos/content/Intent.java index 6f4f9250..3a0ff95a 100644 --- a/sdk/src/java/lineageos/content/Intent.java +++ b/sdk/src/java/lineageos/content/Intent.java @@ -109,4 +109,15 @@ public class Intent { */ public static final String EXTRA_LID_STATE = "lineageos.intent.extra.LID_STATE"; + + /** + * Broadcast Action: Update preferences for the power menu dialog. This is to provide a + * way for the preferences that need to be enabled/disabled to update because they were + * toggled elsewhere in the settings (ie screenshot, user switcher, etc) so we don't have + * to do constant lookups while we wait for the menu to be created. Getting the values once + * when necessary is enough. + *@hide + */ + public static final String ACTION_UPDATE_POWER_MENU = + "lineageos.intent.action.UPDATE_POWER_MENU"; } |