Bug? composer.getSceneName("overlay") in did show event of overlay returns nil

This is a bug in my opinion. 

[lua]function scene:show(event)  – show event inside an overlay scene

    

    if event.phase == “will” then

        print(composer.getSceneName(“overlay”)) 

        – Prints nil

        timer.performWithDelay(1000, function print(composer.getSceneName(“overlay”)) end)

        – Prints overlay name correctly

    end

    

end[/lua]

Uhm. I think it is. Could you please post a case and paste back the bug number?

Thanks,

alex

OK will do. 

IMHO composer.getSceneName(“overlay”) should return the overlay name even before the “create” scene happens so that create can use that information.  But I guess that can be up for debate.

Case 37014.

Thanks.

Thank you. I’ll come back on this when it’s fixed.

alex

Uhm. I think it is. Could you please post a case and paste back the bug number?

Thanks,

alex

OK will do. 

IMHO composer.getSceneName(“overlay”) should return the overlay name even before the “create” scene happens so that create can use that information.  But I guess that can be up for debate.

Case 37014.

Thanks.

Thank you. I’ll come back on this when it’s fixed.

alex