[mythtv-commits] Ticket #13444: Android recover from long sleep

MythTV noreply at mythtv.org
Thu Apr 18 15:00:07 UTC 2019


#13444: Android recover from long sleep
----------------------------------+------------------------------
 Reporter:  mspieth               |          Owner:  Mark Spieth
     Type:  Bug Report - General  |         Status:  new
 Priority:  minor                 |      Milestone:  needs_triage
Component:  Ports - Android       |        Version:  Master Head
 Severity:  medium                |     Resolution:
 Keywords:                        |  Ticket locked:  0
----------------------------------+------------------------------

Comment (by gigem):

 Replying to [comment:8 mspieth]:
 > Do you have to set background_running in the manifest too?

 Yes, the way it currently works using MythEvents.

 Background running is also currently needed for other reasons.  Any
 screens that use events to update their state need it.  They would all
 have to be changed to support a "refresh everything" operation after being
 resumed.  Some would likely be easy to do that while others less so.  It's
 something we can continue to work towards if we want to.  Background music
 playing would definitely need to keep background running.

 > Otherwise LGTM with the above true.
 >
 > The other way to do it would be to add a listener for
 ApplicationStateChanged in the tv class. While sendEvent QAPP_SUSPEND is
 synchronous, it does go through the dispatcher on the main QT thread. If
 this is already stopped in no background_running mode, then this may break
 the handling of QAPP_SUSPEND until the app goes back into foreground.

 I wasn't sure if multiple listeners for ApplicationStateChanged would
 work.  I can try it.  Can any Q_Object listen for it?  I went with what I
 was more familiar with (MythEVents) and what I was confident would work.

-- 
Ticket URL: <https://code.mythtv.org/trac/ticket/13444#comment:9>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list