OSDN Git Service

Make Print Settings use the new PrintManager.getPrintServices loader
authorPhilip P. Moltmann <moltmann@google.com>
Wed, 24 Feb 2016 20:11:05 +0000 (12:11 -0800)
committerPhilip P. Moltmann <moltmann@google.com>
Mon, 7 Mar 2016 17:32:55 +0000 (09:32 -0800)
commitd9779db8c966347734c5791cf63b7dc2e466a0f4
tree1ca5c4f430eb51cee18fa8e03fa096dd201a5f5c
parent52fdd6a058808b5d71a8e7cbdc80c7460c459304
Make Print Settings use the new PrintManager.getPrintServices loader

This makes sure that all data always stays up to date.

printer_dropdown_item.xml:
- Reduce the amount of overriden properties

PrintServiceSettingsFragment:
- Instead receiving most data from PrintSettingsFragment have own loader
  and keep data up to date
- Also the updating of the print service state now has a dedicated
  PrintManager call instead of relying of the Settings-ContentObserver
  to transport this information. No more race-conditions, whohoo!

DynamicIndexableContentMonitor:
- To not rewrite too much code the update logic has to live here but the
  reading of the actual data is in PrintSettingsFragment.

Change-Id: I60715cda8952565d7f68cb24fb7da61a37085887
res/layout/printer_dropdown_item.xml
src/com/android/settings/SettingsActivity.java
src/com/android/settings/print/PrintServiceSettingsFragment.java
src/com/android/settings/print/PrintSettingsFragment.java
src/com/android/settings/print/PrintSettingsUtils.java [deleted file]
src/com/android/settings/search/DynamicIndexableContentMonitor.java