Preventing unnecessary setLayout calls in workspace

Separating getSystemProperty in a separate method

Change-Id: I88716e796e29ac27ef25afa41077a8f29eb65f25
This commit is contained in:
Sunny Goyal committed 2016-08-30 14:06:51 -07:00
1 parent 0a6dde7265
commit dfc8b6685b
2 files changed
+10 -5

No files matched your search

+1 -1
View File
@@ -624,8 +624,8 @@ public class Workspace extends PagedView
ViewGroup.LayoutParams lp = qsbContainer.getLayoutParams();
if (cellHeight > 0 && lp.height != cellHeight) {
lp.height = cellHeight;
qsbContainer.setLayoutParams(lp);
}
qsbContainer.setLayoutParams(lp);
}
}