You can add parameter force and use it inside onSurfaceSetup instead of setting this.uniqueLayoutId to 0.