You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
hack: call OnGlobalLayoutListener immediately
The NewPipe DownloadActivity waits for this callback
This commit is contained in:
@@ -494,6 +494,9 @@ public final class ViewTreeObserver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mOnGlobalLayoutListeners.add(listener);
|
mOnGlobalLayoutListeners.add(listener);
|
||||||
|
// hack: many Applications wait for the global layout before doing anything
|
||||||
|
// so we dispatch the event immediately
|
||||||
|
listener.onGlobalLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user