summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/res/menu
diff options
context:
space:
mode:
authorDiogo Ferreira <defer@cyngn.com>2014-12-01 17:17:21 +0000
committerSteve Kondik <shade@chemlab.org>2015-11-07 13:33:21 -0800
commit642da11efb1ded6b4e89ae59d1f142694fde0ef2 (patch)
treef474cd4b96bbe028bbf2110ce0ba615c673f7cb0 /packages/SystemUI/res/menu
parentc372073c2839ce808a802d3d9eb03c32b2d09875 (diff)
downloadframeworks_base-642da11efb1ded6b4e89ae59d1f142694fde0ef2.zip
frameworks_base-642da11efb1ded6b4e89ae59d1f142694fde0ef2.tar.gz
frameworks_base-642da11efb1ded6b4e89ae59d1f142694fde0ef2.tar.bz2
Recents: Port "Development shortcut" (2/3)
This patch includes the equivalent of our Development Shortcuts in CM11 recents. Recents is very different now and this is mostly a rewrite. The semantics changed a bit as well. The current code already has special developer behavior when long-pressing the app icon and that is also where the developer shortcuts are hooked. If the app icon is long-pressed and developer shortcuts are active, a menu will be shown with the several available options. Fixes CML-61 Change-Id: Ifdeaf83cf8db0f41ea38a9e8e926109c569b091a
Diffstat (limited to 'packages/SystemUI/res/menu')
-rw-r--r--packages/SystemUI/res/menu/recent_popup_menu.xml26
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/SystemUI/res/menu/recent_popup_menu.xml b/packages/SystemUI/res/menu/recent_popup_menu.xml
new file mode 100644
index 0000000..9b605f9
--- /dev/null
+++ b/packages/SystemUI/res/menu/recent_popup_menu.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/* apps/common/assets/default/default/skins/StatusBar.xml
+**
+** Copyright 2011, The Android Open Source Project
+**
+** Licensed under the Apache License, Version 2.0 (the "License");
+** you may not use this file except in compliance with the License.
+** You may obtain a copy of the License at
+**
+** http://www.apache.org/licenses/LICENSE-2.0
+**
+** Unless required by applicable law or agreed to in writing, software
+** distributed under the License is distributed on an "AS IS" BASIS,
+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+** See the License for the specific language governing permissions and
+** limitations under the License.
+*/
+-->
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:id="@+id/recent_remove_item" android:title="@string/status_bar_recent_remove_item_title" />
+ <item android:id="@+id/recent_inspect_item" android:title="@string/status_bar_recent_inspect_item_title" />
+ <item android:id="@+id/recent_force_stop" android:title="@string/advanced_dev_option_force_stop" />
+ <item android:id="@+id/recent_wipe_app" android:title="@string/advanced_dev_option_wipe_app" />
+ <item android:id="@+id/recent_uninstall" android:title="@string/advanced_dev_option_uninstall" />
+</menu>