"squirreltown" wrote:
"Rek" wrote:
just increase the display time of the new app's splash screen by whatever time remains.
I would not be in favor of this. If your app needs to pull graphics or sounds from the net, its probably taking long enough to start up as it is. Run Netflix lately?
Netflix is a special case since they don't use brightscript. Besides, this would only be adding the "remaining" time in the exit handler to the splash screen.
Example:
1. App A is opened.
2. User presses Home button.
3. Regular execution stops.
4. atexit is called from a background thread.
5. App A closes and shows the home screen.
6. User navigates to App B's icon on home screen.
7. User launches App B.
8. App B's splash screen is displayed.
Let's say it took 3 seconds to get from step 2 -> step 8, if the exit handler's timeout is 5 seconds, we would only be waiting 2 extra seconds here. This is also THE WORST CASE SCENARIO -- typical apps will not take 5 seconds to shutdown.
It really should be clear that we're discussing behaviour of BADLY WRITTEN APPS. Properly written exit handlers should not take even 1 second to finish. In fact, the timeout could probably be lowered further to only 1 second if it's really that concerning (if there are really THAT many bad roku apps out in the wild).