mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Add new buttons to taskbar
Cherry picked from commit 53db50dd0b2bd6ed1842b25396c9c52b7abe1157 after resolving conflicts The CL adds two new buttons for desktop usage. No listeners are registered yet. Recall: http://recall/clips/f52b70ed-c437-4374-a492-e4b7c802520a Bug: 198355239 Test: m, verify that new buttons are added Change-Id: I1d4a12da3041e113a978c37c9e36ec085d15e8b3
This commit is contained in:
committed by
Shuming Hao
parent
94c97fbe59
commit
db5960de5e
@@ -56,6 +56,8 @@ public class TaskbarNavButtonController {
|
||||
BUTTON_RECENTS,
|
||||
BUTTON_IME_SWITCH,
|
||||
BUTTON_A11Y,
|
||||
BUTTON_QUICK_SETTINGS,
|
||||
BUTTON_NOTIFICATIONS,
|
||||
})
|
||||
|
||||
public @interface TaskbarButton {}
|
||||
@@ -65,6 +67,8 @@ public class TaskbarNavButtonController {
|
||||
static final int BUTTON_RECENTS = BUTTON_HOME << 1;
|
||||
static final int BUTTON_IME_SWITCH = BUTTON_RECENTS << 1;
|
||||
static final int BUTTON_A11Y = BUTTON_IME_SWITCH << 1;
|
||||
static final int BUTTON_QUICK_SETTINGS = BUTTON_A11Y << 1;
|
||||
static final int BUTTON_NOTIFICATIONS = BUTTON_QUICK_SETTINGS << 1;
|
||||
|
||||
private static final int SCREEN_UNPIN_COMBO = BUTTON_BACK | BUTTON_RECENTS;
|
||||
private int mLongPressedButtons = 0;
|
||||
|
||||
Reference in New Issue
Block a user