commit | b76de265a2574264c7bfe592837894c559cfd06d | [log] [tgz] |
---|---|---|
author | Doris Ling <dling@google.com> | Mon Jul 11 18:09:15 2016 -0700 |
committer | Doris Ling <dling@google.com> | Tue Jul 12 18:02:22 2016 -0700 |
tree | 599cb7730c6f38603b9d96819557762ef646b470 | |
parent | 8dc1a7340bff05ad38584ce7dce0db7b6e0c23ce [diff] |
Reduce the number of times that dataset changed is triggerd in DashboardAdapter 1. Save the suggestion list and the category list into the instance state so that it will be available on warm start, and avoid the need to reload the data. 2. Add the condition list to the constructor parameters for DashboardAdapter, so that it does not need to setConditions() separately which will trigger notifyDataSetChanged() Bug: 30055644 Change-Id: Ia04fa3a25b13d2dacf6baf5f412d662a595fb6dd