mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Review comments followup
These are review comments followup from ag/17399997 Bug: b/218187058 Test: manually test thet Launcher3 features work correctly Change-Id: I9865a37c1ed663370dc28e7678994f3d961e3cd1
This commit is contained in:
@@ -178,7 +178,7 @@ public class TestInformationHandler implements ResourceBasedOverride {
|
||||
|
||||
case TestProtocol.REQUEST_WORKSPACE_CELL_LAYOUT_SIZE:
|
||||
return getLauncherUIProperty(Bundle::putIntArray, launcher -> {
|
||||
final Workspace workspace = launcher.getWorkspace();
|
||||
final Workspace<?> workspace = launcher.getWorkspace();
|
||||
final int screenId = workspace.getScreenIdForPageIndex(
|
||||
workspace.getCurrentPage());
|
||||
final CellLayout cellLayout = workspace.getScreenWithId(screenId);
|
||||
@@ -189,7 +189,7 @@ public class TestInformationHandler implements ResourceBasedOverride {
|
||||
final WorkspaceCellCenterRequest request = extra.getParcelable(
|
||||
TestProtocol.TEST_INFO_REQUEST_FIELD);
|
||||
return getLauncherUIProperty(Bundle::putParcelable, launcher -> {
|
||||
final Workspace workspace = launcher.getWorkspace();
|
||||
final Workspace<?> workspace = launcher.getWorkspace();
|
||||
// TODO(b/216387249): allow caller selecting different pages.
|
||||
CellLayout cellLayout = (CellLayout) workspace.getPageAt(
|
||||
workspace.getCurrentPage());
|
||||
|
||||
Reference in New Issue
Block a user