mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
Add TaskBarContainer to launcher_atom.proto
Bug: 193009817 Test: Manual Change-Id: Ib69be2b2405ab38891dff34c4d366105cd2499c1
This commit is contained in:
committed by
Tony Wickham
parent
94c673c64d
commit
be8b2ad03d
@@ -59,6 +59,7 @@ message ContainerInfo {
|
||||
SettingsContainer settings_container = 9;
|
||||
PredictedHotseatContainer predicted_hotseat_container = 10;
|
||||
TaskSwitcherContainer task_switcher_container = 11;
|
||||
TaskBarContainer task_bar_container = 12;
|
||||
ExtendedContainers extended_containers = 20;
|
||||
}
|
||||
}
|
||||
@@ -100,6 +101,16 @@ message SettingsContainer {
|
||||
message TaskSwitcherContainer {
|
||||
}
|
||||
|
||||
// Container for taskbar.
|
||||
// Configured to show up on large screens(tablet-sized) such as foldables in expanded state, within
|
||||
// an app view(not in launcher screen).
|
||||
message TaskBarContainer {
|
||||
optional int32 index = 1;
|
||||
|
||||
// Bit encoded value to capture pinned and predicted taskbar positions.
|
||||
optional int32 cardinality = 2;
|
||||
}
|
||||
|
||||
enum Attribute {
|
||||
UNKNOWN = 0;
|
||||
DEFAULT_LAYOUT = 1; // icon automatically placed in workspace, folder, hotseat
|
||||
|
||||
@@ -375,6 +375,8 @@ public class StatsLogCompatManager extends StatsLogManager {
|
||||
switch (info.getContainerInfo().getContainerCase()) {
|
||||
case PREDICTED_HOTSEAT_CONTAINER:
|
||||
return info.getContainerInfo().getPredictedHotseatContainer().getCardinality();
|
||||
case TASK_BAR_CONTAINER:
|
||||
return info.getContainerInfo().getTaskBarContainer().getCardinality();
|
||||
case SEARCH_RESULT_CONTAINER:
|
||||
return info.getContainerInfo().getSearchResultContainer().getQueryLength();
|
||||
case EXTENDED_CONTAINERS:
|
||||
@@ -461,6 +463,8 @@ public class StatsLogCompatManager extends StatsLogManager {
|
||||
return info.getContainerInfo().getHotseat().getIndex();
|
||||
case PREDICTED_HOTSEAT_CONTAINER:
|
||||
return info.getContainerInfo().getPredictedHotseatContainer().getIndex();
|
||||
case TASK_BAR_CONTAINER:
|
||||
return info.getContainerInfo().getTaskBarContainer().getIndex();
|
||||
default:
|
||||
return info.getContainerInfo().getWorkspace().getPageIndex();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user