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 +++++++++++++ app/src/main/res/values-cs/strings.xml | 1 + app/src/main/res/values-de/strings.xml | 2 ++ app/src/main/res/values-fr/strings.xml | 1 + app/src/main/res/values-ja/strings.xml | 1 + app/src/main/res/values-ru/strings.xml | 1 + app/src/main/res/values-zh-rCN/strings.xml | 1 + app/src/main/res/values-zh-rTW/strings.xml | 1 + app/src/main/res/values/strings.xml | 2 ++ 9 files changed, 23 insertions(+) (limited to 'app/src/main/res') 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" /> + + Nebyl vybrát externí repozitář Odeslat heslo jako plaintext za použití… Pokaż hasło + Failed to get last changed date \ No newline at end of file diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 80b16cd9..8c63a37b 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -194,4 +194,6 @@ Bildschirmfoto Accessibility Services Bildschirmfoto des Schalters in Accessibility Services Bildschirmfoto von Autofill in Aktion + Zuletzt geändert %s + Das Abrufen des letzten Änderungsdatums ist fehlgeschlagen. diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 3180a494..6db46765 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -186,4 +186,5 @@ Afficher le contenu supplémentaire Nom d\'utilisateur Impossible d\'ouvrir la clef ssh, merci de vérifier que le ficher existe + Failed to get last changed date diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml index 9ab13ff0..def249be 100644 --- a/app/src/main/res/values-ja/strings.xml +++ b/app/src/main/res/values-ja/strings.xml @@ -157,4 +157,5 @@ 外部リポジトリが選択されていません パスワードをプレーンテキストとして送信… パスワードを表示 + Failed to get last changed date diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 24fe4e58..d8177901 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -188,4 +188,5 @@ Вставить Вставить имя пользователя?\n\n%s Выберите поле ввода для вставки имени пользователя.\nИмя пользователя можно вставить в течение %d секунд. + Failed to get last changed date diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index ba6dfa5a..bcba3ca2 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -121,4 +121,5 @@ 生成的 URL 匹配… 加密 + Failed to get last changed date \ No newline at end of file diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index 43e51818..d0970f00 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -121,4 +121,5 @@ 生成的 URL 匹配… 加密 + Failed to get last changed date 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