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/layout/decrypt_layout.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'app/src/main/res/layout/decrypt_layout.xml') diff --git a/app/src/main/res/layout/decrypt_layout.xml b/app/src/main/res/layout/decrypt_layout.xml index 48247c57..e5095d66 100644 --- a/app/src/main/res/layout/decrypt_layout.xml +++ b/app/src/main/res/layout/decrypt_layout.xml @@ -43,6 +43,19 @@ android:textSize="24sp" android:textStyle="bold" tools:ignore="HardcodedText" /> + +