Commit Graph

11 Commits

Author SHA1 Message Date
Fan Zhang
841d1d5aab Show shadow when entity header starts scrolling.
- Add a controller to manage add/remove onScrollChangedListener to
  recyclerviews.
- When recyclerview on each screen is scrolled to top, set actionbar
  elevation to 0, otherwise set it to non-zero.
- When screen is moved to background, detach the listener.
- Use the controller in entity header.

Change-Id: Iecf194d885098c98c392810f62893ae9189f3936
Fix: 37670670
Test: make RunSettingsRoboTests
2017-05-22 17:16:24 -07:00
Fan Zhang
7afbf0f3a2 Add support to show first impression type suggestions
- Add FIRST_IMPRESSION type in suggestion order list.
- Make rule changes for a few suggestions.

Bug: 37947647
Test: manual

Change-Id: I2101f5e0f6424723bacc9f5febf2ffaab9398896
2017-05-09 14:20:43 -07:00
Daniel Sheng
4cdc1d98b1 Merge "Added suggestion category for camera lift gesture" 2017-04-25 20:43:55 +00:00
Daniel Sheng
73ffcd55e8 Added Trust Agent suggestion category from SUW
Bug: 36513986
Test: make RunSettingsRoboTests
Change-Id: I3238864bfeee1601d735daf811898886baa2b204
2017-04-21 10:15:23 -07:00
Daniel Sheng
5e6708cdee Added suggestion category for camera lift gesture
Bug: 37154489
Test: Robolectric tests run during make

Change-Id: I3528e3d954f872732f55dfa8bdc42fdc15f27d12
2017-04-20 10:28:10 -07:00
Maurice Lam
a2218a938f Add DEFERRED_SETUP as exclusive suggestion
Add the suggestion category DEFERRED_SETUP, and mark as exclusive
which will prevent suggestions from other categories to be shown when
this is available.

Test: Manual
Bug: 35668836
Change-Id: I2b8ddb65482a39ce8bcb2d673af5dfec759b40c8
2017-03-27 15:52:13 -07:00
Ido Ofir
d11743c775 Merge "Remove payments from settings suggestions." 2016-02-01 21:28:05 +00:00
Ido Ofir
acebe4bc7b Adding hotword category to Settings suggested steps.
Change-Id: I1f8c349b5cdd37cddd6b629121af03fb3b6695c6
2016-01-29 16:49:16 -08:00
Ido Ofir
cae4bb354d Remove payments from settings suggestions.
Bug: 26770145

Change-Id: I269b78cfde45bd4a9c1669bc9425676404d54188
2016-01-29 13:32:20 -08:00
Jason Monk
4a60c8876e Add DND Suggestion after 30 days
Suggest users setup automatic rules if they haven't after 30 days

Also fix the id labeling for the RV adapter, so that it can handle
removing of suggestions properly.

Change-Id: I0cce76f3db1d444011f7d8a31348714d102650cf
2016-01-26 17:29:59 -05:00
Jason Monk
d4f03ec86f Add suggestions to settings
Use an XML to define the categories that Settings will look for,
and surface enabled activities under those categories as suggestions.

When clicked on the activity will be started for result.  If the result
is not cancelled, then the operation is assumed successful and the
suggestion is disabled.  Users can also use an overflow -> remove
flow to get rid of unwanted suggestions.

Change-Id: I767abf8efe103af0509bc6b6b55888ae82643512
2016-01-07 16:25:34 -05:00