This generalizes the pattern of needing to offer a selection among a
list of candidate applications.
Also move some reusable logic around querying PackageManager for icons
into AppListPreference, and remove some unnecessary update logic: the
preference will update itself when onPreferenceChange returns true,
and we can set the summary to '%s' to automatically use the entry as
the summary without having to reset it each time.
Change-Id: I007b9ed58359302f93b367a4b86354e93613bf3e
- implement a SearchIndexProvider for providing the data to index
- some code refactoring to extract some helper methods
Change-Id: Ia8818c17d1bead7306b528d242cdc24c863c17eb
The print service list is dynamically constructed, therefore we need
a local provider that will emit print service data to be indexed.
bug:13929163
Change-Id: I51d5ae40c00edc6be7b212dc8aa08fd7ebfbf349
The accessibility service list is dynamically constructed, therefore we
need a local provider that will emit accessibility service data to be
indexed.
bug:13928519
Change-Id: Idd29cd1698f36b54fabf013dfa36029412bbb8a9
If we are indexing from a local resource and the indexable resource does
not provide icon or class name or rank we fall back to the defaults.
Change-Id: Ibbed8b2a92e28799c26f5f80b3f058737535739d
We were indexing the remembered device names but we were missing the
informations for launching the correct Activity from the Search result.
- add the missing information: className and iconResId
Change-Id: Ib6781d4c492c296e822da1b5a8a2a76c92ecd586
- getNonIndexableKeys(Context) allow a SearchIndexProvider to tell which data
he does not want to index by providing a list of the data keys
- use this new API for SoundSettings and removing KEY_EMERGENCY_TONE related
settings if the device is not CDMA
- add a BaseSearchIndexProvider for code simplification
Change-Id: I23633ace1d7e390ee05fac0a5458a33e04e72d8d
...from wellknown SearchIndexablesProvider
Check if the SearchIndexablesProvider is:
- having the correct android.permission.READ_SEARCH_INDEXABLES
read/write permissions
- a privileged one (like Settings App, Phone App)
Change-Id: I5fd1fef46716cca0e439196e24b607ff5506495c
- remove those "splitActionBarWhenNarrow" in the AndroidManifest for all
the activities so that the ActionBar behavior is always consistent and
does not split.
Change-Id: I54cb10528ba3a751a7d2843cc9e9c518a5f3531a
- use colums indices that are now defined into SearchIndexablesContract
- ... and at the same time fix an issue with some wrong column indices
that were used
Change-Id: If72ddc7d7171329ca533cb2763431902099769b9
- remembered devices name were only indexed when BT was turned on/off
- allow the same when they are paired
- remove device name from the Index if it is un-paired
Change-Id: I1206a591b0132789c3b003e52c7ffac630e80758
... and back button in sub-settings
- move code managing the Switch from onCreate(...) to onStart()
Change-Id: I747180bea3880e84635134373bf4c681378f3ec8
..that has no Fragment nor Intent at SettingsActivity.onHeaderClick(SettingsActivity.java:654)
- satisfy the Monkeys has they were able to click on "WIRELESS &
NETWORK" header which is a Category and normally non clickable...
(so probably a race condition)
Change-Id: Ia33d2b6e55e910409a566e5f05c1e3bae8008807
- modify the SQlite data model
- update Index code for managing the key value
- pass the key when launching a Fragment or and Activity
- implement a small animation for highlighting the Preference
from a Search result
Change-Id: I617643a4e5e3b752ece8f45ce7d5429037e479da