diff --git a/plugin.js b/plugin.js index af41083..fe4ed9d 100644 --- a/plugin.js +++ b/plugin.js @@ -341,7 +341,7 @@ this.destroy = function () { // Let Lampa clear the background natively. try { - if (Lampa.Background && Lampa.Background.immediately) Lampa.Background.immediately(''); + if (Lampa.Background && Lampa.Background.change) Lampa.Background.change(''); } catch (e) {} }; @@ -370,7 +370,7 @@ back: function () { // Let Lampa clear the background natively (matches built-in pages). try { - if (Lampa.Background && Lampa.Background.immediately) Lampa.Background.immediately(''); + if (Lampa.Background && Lampa.Background.change) Lampa.Background.change(''); } catch (e) {} Lampa.Activity.backward(); }, @@ -407,13 +407,14 @@ // controller or steal focus once it's already set. apply(); // Use Lampa's native background (canvas blur + fade), exactly like a - // built-in movie page. Do NOT touch .background via CSS — Lampa owns it. + // built-in movie page. Native full pages call Background.change(), + // not immediately() (which is throttled and can no-op on open). try { var dm = resolveMovie((comp.activity && comp.activity.object) || selected); var bg = resolve(dm.img || dm.poster || dm.cover); console.log('[mymovies] bg=', bg); - if (bg && Lampa.Background && Lampa.Background.immediately) { - Lampa.Background.immediately(bg); + if (bg && Lampa.Background && Lampa.Background.change) { + Lampa.Background.change(bg); } } catch (e) { console.log('[mymovies] bg err', e); } if (!$('.mymovies-detail .full-start-new__buttons .full-start__button.selector').length) {