From df05cf8b269b8c3cffb5c1fd145583eb733c15fa Mon Sep 17 00:00:00 2001 From: Gegham Zakaryan Date: Mon, 29 Mar 2021 23:00:03 +0400 Subject: [PATCH] lineage-sdk: Follow AOSP order of PowerMenuConstants Partially follow the order of config_globalActionsList and bring emergency and lockdown to top. Some of the order isn't followed as some items such as users and airplane don't exist in AOSP's list but are much more frequently used than, say, bugreport. Signed-off-by: Gegham Zakaryan Change-Id: Ie49e77fd99ad0f0dee7c6c7956fc7c1d0474ee63 --- .../org/lineageos/internal/util/PowerMenuConstants.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/src/java/org/lineageos/internal/util/PowerMenuConstants.java b/sdk/src/java/org/lineageos/internal/util/PowerMenuConstants.java index dc03dc81..d98dd1b6 100644 --- a/sdk/src/java/org/lineageos/internal/util/PowerMenuConstants.java +++ b/sdk/src/java/org/lineageos/internal/util/PowerMenuConstants.java @@ -1,6 +1,6 @@ /* * Copyright (C) 2015 The CyanogenMod Project - * Copyright (C) 2017-2018 The LineageOS Project + * Copyright (C) 2017-2021 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,19 +42,19 @@ public class PowerMenuConstants { public static final String GLOBAL_ACTION_KEY_RESTART_FASTBOOT = "restart_fastboot"; private static String[] ALL_ACTIONS = { + GLOBAL_ACTION_KEY_EMERGENCY, + GLOBAL_ACTION_KEY_LOCKDOWN, GLOBAL_ACTION_KEY_POWER, GLOBAL_ACTION_KEY_RESTART, GLOBAL_ACTION_KEY_SCREENSHOT, GLOBAL_ACTION_KEY_AIRPLANE, GLOBAL_ACTION_KEY_USERS, GLOBAL_ACTION_KEY_SETTINGS, - GLOBAL_ACTION_KEY_LOCKDOWN, GLOBAL_ACTION_KEY_BUGREPORT, GLOBAL_ACTION_KEY_SILENT, GLOBAL_ACTION_KEY_VOICEASSIST, GLOBAL_ACTION_KEY_ASSIST, GLOBAL_ACTION_KEY_LOGOUT, - GLOBAL_ACTION_KEY_EMERGENCY, }; public static String[] getAllActions() {