OSDN Git Service

DO NOT MERGE - Ensuring that there are per-user last stack active times.
authorManu Cornet <manucornet@google.com>
Thu, 16 Feb 2017 00:37:16 +0000 (16:37 -0800)
committerManu Cornet <manucornet@google.com>
Thu, 16 Feb 2017 00:37:19 +0000 (16:37 -0800)
commit512bbdde691fbfc53d8fe39c09b828704a7faa1b
tree1b8d53d6bdccd39bdc0dccce8ce77f77e33c0f62
parent83b072c48c0008312db5666f43b9062c43416455
DO NOT MERGE - Ensuring that there are per-user last stack active times.

- This fixes an issue where the last stack active time would be clobbered
  when switching between users.  With the policy in the phone/stack
  recents, this is fine, but with the grid recents, it no longer only
  applies when out of the historical window, so it is always wrong (it
  would normally be wrong if switching back from another user after the
  historical time of six hours).

  This CL will migrate the last stack active time to a per-user secure
  setting, which will be used going forward.

[This is a manual merge of change 1913535]

Bug: 35375206
Test: On the Ryu, launch some tasks, switch users, launch more tasks, and
      return to the original user

Change-Id: Idc72920240093d15f822f5d9e3ee11b12a56edae
core/java/android/provider/Settings.java
packages/SystemUI/src/com/android/systemui/Prefs.java
packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
packages/SystemUI/src/com/android/systemui/recents/model/RecentsTaskLoadPlan.java