summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/location
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2019-01-22 11:19:42 -0800
committerJoel Galenson <jgalenson@google.com>2019-01-22 14:56:51 -0800
commit03729e780d300da05176449c99248ab456c2575b (patch)
treeb0435e07c7b7e152ac3ec0c6412a51a305eeb02b /src/com/android/settings/location
parentd3be36300412302c910e24c7622d0ab74d731eaa (diff)
downloadpackages_apps_Settings-03729e780d300da05176449c99248ab456c2575b.tar.gz
packages_apps_Settings-03729e780d300da05176449c99248ab456c2575b.tar.bz2
packages_apps_Settings-03729e780d300da05176449c99248ab456c2575b.zip
Make links to Permissions Hub only show last day.
Default to showing only the last day of accesses. Also fix a bug caused by the API changing from seconds to milliseconds. Test: Click links and see correct filter. Change-Id: I8456723a434c7144e9115e1834f48d3c1da24d4b
Diffstat (limited to 'src/com/android/settings/location')
-rw-r--r--src/com/android/settings/location/RecentLocationAccessPreferenceController.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/settings/location/RecentLocationAccessPreferenceController.java b/src/com/android/settings/location/RecentLocationAccessPreferenceController.java
index 2d84e21e18..3adc489b36 100644
--- a/src/com/android/settings/location/RecentLocationAccessPreferenceController.java
+++ b/src/com/android/settings/location/RecentLocationAccessPreferenceController.java
@@ -13,6 +13,8 @@
*/
package com.android.settings.location;
+import static java.util.concurrent.TimeUnit.DAYS;
+
import android.Manifest;
import android.content.Context;
import android.content.Intent;
@@ -74,6 +76,7 @@ public class RecentLocationAccessPreferenceController extends AbstractPreference
final Intent intent = new Intent(Intent.ACTION_REVIEW_PERMISSION_USAGE);
intent.putExtra(Intent.EXTRA_PERMISSION_NAME,
Manifest.permission.ACCESS_FINE_LOCATION);
+ intent.putExtra(Intent.EXTRA_DURATION_MILLIS, DAYS.toMillis(1));
mContext.startActivity(intent);
});
}