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 <zakaryan.2004@outlook.com> Change-Id: Ie49e77fd99ad0f0dee7c6c7956fc7c1d0474ee63
This commit is contained in:
committed by
Bruno Martins
parent
8e4a978315
commit
df05cf8b26
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user