Preventing drawing pages in Workspace if possible
Bug: 6427601 Change-Id: I259554557a5856aa17a532c656032c4d6d5826bd
This commit is contained in:
@@ -450,6 +450,13 @@ public class Workspace extends SmoothPagedView
|
||||
public void onChildViewRemoved(View parent, View child) {
|
||||
}
|
||||
|
||||
protected boolean shouldDrawChild(View child) {
|
||||
final CellLayout cl = (CellLayout) child;
|
||||
return super.shouldDrawChild(child) &&
|
||||
(cl.getShortcutsAndWidgets().getAlpha() > 0 ||
|
||||
cl.getBackgroundAlpha() > 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The open folder on the current screen, or null if there is none
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user