message: Added and removed global layout listener
diff: @@ -25,6 +25,7 @@ public class SceneView extends ViewGroup {
  protected String sceneKey;
  public HashSet<View> sharedElements = new HashSet<>();
  public SharedElementTransitioner transitioner;
  + private CustomGlobalLayoutListener customGlobalLayoutListener;
  public SceneView(Context context) {
  super(context);
  @@ -33,6 +34,8 @@ public class SceneView extends ViewGroup {
  @Override
  protected void onAttachedToWindow() {
  super.onAttachedToWindow();
  + customGlobalLayoutListener = new CustomGlobalLayoutListener();
  + getViewTreeObserver().addOnGlobalLayoutListener(customGlobalLayoutListener);
  View child = getChildAt(0);
  if (child != null && child.getClass().getSimpleName().contains("DrawerLayout")) {
  child.requestLayout();
  @@ -40,6 +43,12 @@ public class SceneView extends ViewGroup {
  }
  }
  + @Override
  + protected void onDetachedFromWindow() {
  + super.onDetachedFromWindow();
  + getViewTreeObserver().removeOnGlobalLayoutListener(customGlobalLayoutListener);
  + }
  +
  private final Runnable measureAndLayout =
  new Runnable() {
  @Override
  