Remove odd screen ids when isTwoPanels is true
We where adding more CellLayouts but they where later removed by removeExtraEmptyScreenDelayed but when rotated the pagination animation is created before they are removed. With this change the extra CellLayouts won't be added in the first place. Fix: 291822492 Test: RoerderWidgets Test: FoldableItemsIntegrity Change-Id: I561d2ce961a7ecc50f7a8c99c4acc44262b2e211
This commit is contained in:
1 parent
173cf33ac1
commit
ddd0450f6b
4 files changed
+41
-9
No files matched your search
@@ -731,6 +731,14 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns if the given screenId is already in the Workspace
|
||||
*/
|
||||
public boolean containsScreenId(int screenId) {
|
||||
return this.mWorkspaceScreens.containsKey(screenId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts extra empty pages to the end of the existing workspaces.
|
||||
* Usually we add one extra empty screen, but when two panel home is enabled we add
|
||||
|
||||
Reference in new issue
Block a user