mozilla-b2g/gaia — pull request #6420 by RudyLu (2012-11-15 08:37:03+00:00)
Title: Bug 812065 - Not to reset the displayedApp to homescreen in openWindow(h...

...omescreen)

* The root cause for this issue is,
When coming back from Gallery image picker to Contacts App. somehow homescreen was relaunched and in openWindow(), it would be set as displayedApp.

Since displayedApp is wrongly set as homescreen, we could not resize the Contacts App. to show the keyboard.

* I think this assignment is not necessary, since in ensureHomescreen(), we will set displayedApp to homescreen is it is null.
* For other App. launch case, displayedApp should be correctly assigned in windowOpened().

Hi @timdream,

Could you please review if the above logic is correct?
Thanks.