From e41287cb164b734dd19dc63d88235dd75509547d Mon Sep 17 00:00:00 2001 From: Christoph Böhmwalder Date: Tue, 26 Dec 2017 14:35:25 +0100 Subject: show age for passwords in detail view (#339) * show age for passwords in detail view Implements #330. This fetches the latest commit where the respective password file was changed from the current HEAD and outputs the relative time since the last change on the decrypt page. * Move lastChanged logic out of PgpActivity This nicely encapsulates the lastChanged logic (and thus separates it from dependencies like git). The last changed date is now passed as a timestamp using the Intent's extra info. --- app/src/main/res/values/strings.xml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/src/main/res/values/strings.xml') diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index dd286625..8a5f0e39 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -98,6 +98,7 @@ Copy password Copy username Share as plaintext + Last changed %s Git @@ -217,4 +218,5 @@ Commit hash p@ssw0rd! username: something other extra content + Failed to get last changed date -- cgit v1.2.3