PowerMenuActions: Disable emergency key if emergency affordance is enabled

In India, Emergency affordance is mandatory and cannot be disabled [0].

For Indian users, disabling the emergency action has no effect because, regardless of the selected actions list (LineageGlobalActions), emergency action is always added to the global actions if the emergency affordance is enabled [1].

Reference:
[0] - https://source.android.com/devices/tech/connect/emergency-affordance
[1] - https://github.com/LineageOS/android_frameworks_base/blob/lineage-19.1/packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialogLite.java#L625-L629

Change-Id: I0c0cf03aaff2ea6552a68d51caae0d929ceb0cf1
2 files changed