OSDN Git Service

Sort "Recent Location Requests" by recency.
authorMaggie <yiranwang@google.com>
Tue, 12 Dec 2017 02:02:36 +0000 (18:02 -0800)
committerMaggie <yiranwang@google.com>
Wed, 20 Dec 2017 21:56:59 +0000 (13:56 -0800)
commit704c423ca3fac7742707c5e56a5f232cd7f414e7
treea0f4c4650d4758a5444900cb66018e5645c41b97
parentd538bbcbdd9ae9c48945632ab3d44e7554f46408
Sort "Recent Location Requests" by recency.

The list of apps with recent location requests is currently displayed in
alphabetical order on device (Settings -> Security & Location ->
Location). Sort this list by recency: (1) apps that are currently
requesting location are displayed  on the top. (2) For apps that are not currently
requesting location, the ones with most recent location request finish
time come first.

Bug: 70350519
Test: Robolectric
Test: manual
Change-Id: I5c757defcd7645d254c9c47e3c83f7e323247a71
packages/SettingsLib/src/com/android/settingslib/location/RecentLocationApps.java
packages/SettingsLib/tests/robotests/src/com/android/settingslib/location/RecentLocationAppsTest.java [new file with mode: 0644]