diff options
author | Christoph Böhmwalder <christoph@boehmwalder.at> | 2017-12-26 14:35:25 +0100 |
---|---|---|
committer | Mohamed Zenadi <zeapo@users.noreply.github.com> | 2017-12-26 14:35:25 +0100 |
commit | e41287cb164b734dd19dc63d88235dd75509547d (patch) | |
tree | ff5800cb95a0047c16a5c4809cffcd9e49a126bc /app/src/main/res/layout | |
parent | 916d63f9bec5d624350b62a1d0eaec677a6b214f (diff) |
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.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/decrypt_layout.xml | 13 |
1 files changed, 13 insertions, 0 deletions
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" /> + + <TextView + android:id="@+id/crypto_password_last_changed" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_marginLeft="16dp" + android:layout_marginStart="16dp" + android:text="LAST CHANGED HERE" + android:textColor="@color/grey_500" + android:textIsSelectable="false" + android:textSize="18sp" + tools:ignore="HardcodedText" /> </LinearLayout> <ImageView |