mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
fix(radio): restore the Radio QA harness and the row refresh it depended on (#736)
The harness called the compatibility facade's private _refreshTogglePanel, which the layer-lifecycle refactor removed; Transit and Directions call refreshLayerStats() on the bare lifecycle, which lacked it, so their rows only repainted on the next tick. Add refreshLayerStats() to the lifecycle and use it from the harness. With the crash gone, two further checks ran: the selected-entity paint wait now also waits for Radio's own reveal, and on phones the title bar sits 16 px from the top so both broadcast waves stay on-screen. Co-authored-by: Bilawal Sidhu <[email protected]>
This commit is contained in:
1 parent
1fc795577a
commit
4b56d0e917
5 files changed
+35
-4
No files matched your search
@@ -2304,6 +2304,14 @@ export class LayerLifecycle {
|
||||
return () => this._activityListeners.delete(callback);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ask presentation to repaint layer rows now, for data that lands outside
|
||||
* the manager tick (Transit's proximity polls, Directions' route steps).
|
||||
*/
|
||||
refreshLayerStats() {
|
||||
this._publishActivity({ type: 'status' });
|
||||
}
|
||||
|
||||
_publishActivity(change) {
|
||||
for (const callback of this._activityListeners) {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user