summaryrefslogtreecommitdiff
path: root/src/com/android/customization/model/clock/ContentProviderClockProvider.java
Commit message (Collapse)AuthorAgeFilesLines
* Retire ClocksFetchTask to avoid using AsyncTaskChuck Liao2022-02-111-48/+28
| | | | | | | | Replace ClocksFetchTask with Executors Bug: 198711500 Test: manual Change-Id: I6495efbd9b690fcd6284b3842a979ce843eceb10
* Hide clock option when there is only 1 option[1/2]Wesley.CW Wang2020-02-261-1/+18
| | | | | | | | | | - Not to add clock option(tab) to home page when there is only 1 option - By default, there should be only 1 clock(Default clock) build-in with device, additional clock content will be provided by another apk, if can not find that apk means we only have 1 clock option, then hide the clock tab Bug: 146530441 Test: Need work with ag/10361873, modify the mk file to build up additional clock content, then check the Picker app will display Clock tab or not. Change-Id: Ie64e6f0074869792a956d6b47e4f483a2bbd531f
* Handle no clocks case as errorSantiago Etchebehere2019-06-071-4/+12
| | | | | | | | If we have a provider but for some reason it returns no clockfaces, show error message instead of crashing Fixes: 134611165 Change-Id: I3a9e50b5d821469284c5b9ef837170ffb3ff1fd9
* Revert "Check for providers being enabled"Santiago Etchebehere2019-05-171-1/+1
| | | | | | | | This reverts commit 3bc2536d1ae522e8e519252cbe82acb56cc7ea50. Reason for revert: It looks like just checking for the provider is enough as they don't resolve if not enabled. Change-Id: If8f1c3ea5bd3e6c8db63ce6f39449594b771b069
* Check for providers being enabledSantiago Etchebehere2019-05-151-1/+1
| | | | | | | | | Don't just look for a provider to be present also make sure they're enabled, so they can be disabled programmatically if needed. Bug: 118757588 Change-Id: I2d47b357860a89a0dda8a7d18ed0227efd492b67
* Use ContentProvider for clockfacesSantiago Etchebehere2019-02-061-0/+130
Instead of using a stub, use the ContentProvider in SysUI. Bug: 123904588 Change-Id: If35283a23b234ae436ee1e65afc0ebaa64fc66b1