Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 995bb9d2 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

fix [3008290] passion GB surface does not send surfaceChanged notification after size change.

The video has the same aspect ratio than the window, so the window size doesn't change.
In turn, onSizeChanged() is not called, which is where surfaceChanged() is eventually called from.

we now override setFrame() and always call updateWindow from there instead of from onSizeChanged()

Change-Id: I87064b577ff1d7b6ba50e563d7278813002d2b29
parent eb6e22f2
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -288,9 +288,10 @@ public class SurfaceView extends View {
    }
    
    @Override
    protected void onSizeChanged(int w, int h, int oldw, int oldh) {
        super.onSizeChanged(w, h, oldw, oldh);
    protected boolean setFrame(int left, int top, int right, int bottom) {
        boolean result = super.setFrame(left, top, right, bottom);
        updateWindow(false, false);
        return result;
    }

    @Override