I'm developing a print service on android. The list of available printers changes quite often. However, I have not been able to find a way of removing the non-existing printers (i.e. printers that were available at some point). These printers appear grayed-out on my test devices.
I can see 'zombie' printers in PrinterDiscoverySession's onStartPrinterDiscovery() and onValidatePrinters() methods but do not know how to get rid of them. Calling session's addPrinters() with existing printers or removePrinters() with non-existing ones does not help.
I'd appreciate any suggestions. Thanks.