(@Nullable Layer layer)
| 54 | } |
| 55 | |
| 56 | @NotNull @Contract("-> this") |
| 57 | public Window setLayer(@Nullable Layer layer) { |
| 58 | assert _onUIThread() : "Should be run on UI thread"; |
| 59 | if (_layer != null) { |
| 60 | _layer.close(); |
| 61 | _layer = null; |
| 62 | } |
| 63 | if (layer != null) { |
| 64 | layer.attach(this); |
| 65 | _layer = layer; |
| 66 | accept(EventWindowScreenChange.INSTANCE); |
| 67 | } |
| 68 | return this; |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * <p>Enables complex text input on this window.</p> |
no test coverage detected