From 82ae0a8629a42bc169b4b1993bc8257457703e3f Mon Sep 17 00:00:00 2001 From: glowinthedark <48893368+glowinthedark@users.noreply.github.com> Date: Mon, 17 Aug 2020 12:40:03 +0200 Subject: Allow adding digits and symbols in XkPasswd generator using mask-like values (#1023) * - XkPasswordGeneratorDialogFragment: add symbol/number mask to allow appending numbers+symbols via a mask such as `ddds` which would generate random.password123!; position of `d` and `s` is not currently considered; only the count is relevant * - update CHANGELOG.md * - update CHANGELOG.md * - rename constants * Update CHANGELOG.md Co-authored-by: Harsh Shandilya * - add missing marginTop * - add missing marginTop Co-authored-by: null Co-authored-by: Harsh Shandilya Co-authored-by: glowinthedark Co-authored-by: Harsh Shandilya --- app/src/main/res/layout/fragment_xkpwgen.xml | 23 ++++++++++++++++++++++- app/src/main/res/values/arrays.xml | 2 +- app/src/main/res/values/strings.xml | 2 ++ 3 files changed, 25 insertions(+), 2 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/fragment_xkpwgen.xml b/app/src/main/res/layout/fragment_xkpwgen.xml index 112c94d9..749fba47 100644 --- a/app/src/main/res/layout/fragment_xkpwgen.xml +++ b/app/src/main/res/layout/fragment_xkpwgen.xml @@ -75,7 +75,28 @@ android:entries="@array/capitalization_type_values" android:entryValues="@array/capitalization_type_values" android:spinnerMode="dropdown" + app:layout_constraintEnd_toEndOf="@id/total_words" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@id/separator" /> + app:layout_constraintTop_toBottomOf="@id/total_words" /> + + + + + + diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index 1ccdd5eb..6b5edf6c 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -18,7 +18,7 @@ lowercase UPPERCASE TitleCase - Sentencecase + Sentence Classic diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 4b1e81bf..fe2a3488 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -390,4 +390,6 @@ A file by that name already exists A folder by that name already exists + Digits/Symbols (d/s) + ds -- cgit v1.2.3