Author: bklaas
Date: Thu Jan 17 13:54:55 2008
New Revision: 1493

URL: http://svn.slimdevices.com?rev=1493&root=Jive&view=rev
Log:
Bug: 5523
Description: special case for exiting Playlist page when the playlist is empty, 
thus no NowPlaying window

Modified:
    trunk/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua

Modified: 
trunk/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua
URL: 
http://svn.slimdevices.com/trunk/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua?rev=1493&root=Jive&r1=1492&r2=1493&view=diff
==============================================================================
--- trunk/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua 
(original)
+++ trunk/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua Thu 
Jan 17 13:54:55 2008
@@ -1703,8 +1703,14 @@
                        function(event)
                                local evtCode = event:getKeycode()
                                if evtCode == KEY_BACK then
-                                       --FIXME window transition is wrong here
-                                       
_goNowPlaying(Window.transitionPushRight)
+                                       local windowStack = 
Framework.windowStack
+                                       -- if this window is #2 on the stack 
there is no NowPlaying window 
+                                       -- (e.g., when playlist is empty)
+                                       if #windowStack == 2 then
+                                               _goHome()
+                                       else
+                                               
_goNowPlaying(Window.transitionPushRight)
+                                       end
                                        return EVENT_CONSUME
                                end
                        end

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to