am 11509ad6: Fixing regression from g/649060 regarding building layers for detached views.
* commit '11509ad61afb7424ce83057b0d2a4b09f853651f': Fixing regression from g/649060 regarding building layers for detached views.
This commit is contained in:
@@ -378,11 +378,12 @@ public class LauncherStateTransitionAnimation {
|
||||
dispatchOnLauncherTransitionStart(toView, animated, false);
|
||||
|
||||
// Enable all necessary layers
|
||||
boolean isLmpOrAbove = Utilities.isLmpOrAbove();
|
||||
for (View v : layerViews.keySet()) {
|
||||
if (layerViews.get(v) == BUILD_AND_SET_LAYER) {
|
||||
v.setLayerType(View.LAYER_TYPE_HARDWARE, null);
|
||||
}
|
||||
if (Utilities.isViewAttachedToWindow(v)) {
|
||||
if (isLmpOrAbove && Utilities.isViewAttachedToWindow(v)) {
|
||||
v.buildLayer();
|
||||
}
|
||||
}
|
||||
@@ -697,11 +698,12 @@ public class LauncherStateTransitionAnimation {
|
||||
dispatchOnLauncherTransitionStart(toView, animated, false);
|
||||
|
||||
// Enable all necessary layers
|
||||
boolean isLmpOrAbove = Utilities.isLmpOrAbove();
|
||||
for (View v : layerViews.keySet()) {
|
||||
if (layerViews.get(v) == BUILD_AND_SET_LAYER) {
|
||||
v.setLayerType(View.LAYER_TYPE_HARDWARE, null);
|
||||
}
|
||||
if (Utilities.isLmpOrAbove()) {
|
||||
if (isLmpOrAbove && Utilities.isViewAttachedToWindow(v)) {
|
||||
v.buildLayer();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user