• Svetoslav's avatar
    Refactor how the print dialog activity is started. · 7bfbbcb0
    Svetoslav authored
    1. Before the print job activity was started asyncronously with
       respect to the print call on to the print manager. This was
       creating a situation where the starting activity may finish
       before the print dialog appears which may lead to an orphaned
       print document adapter with no data to print (as the UI is
       is gone), or strange behaviors where the print dialog starts
       on as a separate task.
    
       To address this the pending intent for starting the print
       dialog is not started by the print spooler since we cannot
       call into it synchronously as we have to start its process
       and bind to the spooler service which leads to jankyness in
       the client app. Now the pending intent is created by the
       print manager service in the synchronous print call so
       from an app's perspective calling print starts the activity.
    
       The side effect of this design is that the print dialog
       activity may start before the system is bound to the spooler
       serv...
    7bfbbcb0
CleanSpec.mk 17.3 KB