Created
October 2, 2012 06:06
-
-
Save walterlua/3816630 to your computer and use it in GitHub Desktop.
Workaround for Nook HD bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Workaround for Nook HD bug | |
local listener = function( event ) | |
if "applicationResume" == event.type then | |
display.currentStage.alpha = 0.9 | |
-- Force invalidate 1 second after resume | |
timer.performWithDelay( 1000, function() | |
display.currentStage.alpha = 1.0 | |
end) | |
end | |
end | |
Runtime:addEventListener( "system", listener ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment