Clean up IllegalStateException for page pairing
Fix: 198820019 Test: manual Change-Id: Ic691f781b20d664c57a26370aae479ab68508303
This commit is contained in:
parent
85da1db1aa
commit
920be89b26
|
@ -651,14 +651,6 @@ public class Workspace extends PagedView<WorkspacePageIndicator>
|
|||
if (isTwoPanelEnabled() && !(mDragSourceInternal.getParent() instanceof Hotseat)) {
|
||||
int pagePairScreenId = getScreenPair(dragObject.dragInfo.screenId);
|
||||
CellLayout pagePair = mWorkspaceScreens.get(pagePairScreenId);
|
||||
if (pagePair == null) {
|
||||
// TODO: after http://b/198820019 is fixed, remove this
|
||||
throw new IllegalStateException("Page pair is null, "
|
||||
+ "dragScreenId: " + dragObject.dragInfo.screenId
|
||||
+ ", pagePairScreenId: " + pagePairScreenId
|
||||
+ ", mScreenOrder: " + mScreenOrder.toConcatString()
|
||||
);
|
||||
}
|
||||
dragSourceChildCount += pagePair.getShortcutsAndWidgets().getChildCount();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue