Sort by recently used #1031
Sort by recently used #1031
Conversation
Thanks for the v2, this approach looks pretty good to me. Just a few comments. |
Seems good to me, address Fabian's review comments and I'll merge it after testing. Great job! |
would it be better to save the file path or a hash? |
I think i included all your reviews and manage the case of renaming category/password |
Some more comments, but I'm overall quite happy. Thanks for the contribution! |
app/src/main/java/com/zeapo/pwdstore/crypto/PasswordCreationActivity.kt
Outdated
Show resolved
Hide resolved
val timeP1 = recentHistory.getString(p1.file.absolutePath) | ||
val timeP2 = recentHistory.getString(p2.file.absolutePath) | ||
when { | ||
timeP1 != null && timeP2 != null -> timeP2.compareTo(timeP1) |
fmeum
Aug 19, 2020
Member
This could be simplified using compareBy
and nullsLast
, but I could also add that later.
This could be simplified using compareBy
and nullsLast
, but I could also add that later.
Dioxo
Aug 19, 2020
Author
Contributor
I'll leave it to you, I have no idea how to use those...
I'll leave it to you, I have no idea how to use those...
Co-authored-by: Fabian Henneke <FabianHenneke@users.noreply.github.com>
Co-authored-by: Fabian Henneke <FabianHenneke@users.noreply.github.com>
Co-authored-by: Fabian Henneke <FabianHenneke@users.noreply.github.com>
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Hey, @msfjarvis I think you missed one here too. |
I added a new
PasswordSortOrder
for recently used passwords, saving the time when the password was used and comparing with others.#535