From 20378ae89c2107c653110148d8d6361a36eb1cbd Mon Sep 17 00:00:00 2001 From: Julius Linus Date: Thu, 21 Mar 2024 11:24:14 -0500 Subject: [PATCH] formatting Signed-off-by: rapterjet2004 Signed-off-by: Marcel Hibbe --- .../talk/ui/dialog/SetPhoneNumberDialogFragment.kt | 10 +++++++--- app/src/main/res/layout/dialog_set_phone_number.xml | 7 ++++--- app/src/main/res/values/strings.xml | 2 +- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/ui/dialog/SetPhoneNumberDialogFragment.kt b/app/src/main/java/com/nextcloud/talk/ui/dialog/SetPhoneNumberDialogFragment.kt index ab3816c24c..7c65dfa812 100644 --- a/app/src/main/java/com/nextcloud/talk/ui/dialog/SetPhoneNumberDialogFragment.kt +++ b/app/src/main/java/com/nextcloud/talk/ui/dialog/SetPhoneNumberDialogFragment.kt @@ -78,8 +78,12 @@ class SetPhoneNumberDialogFragment : DialogFragment() { binding.phoneInputLayout.helperText = "" } - override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) {} - override fun afterTextChanged(s: Editable?) {} + override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { + // unused atm + } + override fun afterTextChanged(s: Editable?) { + // unused atm + } }) return dialogBuilder.create() @@ -104,7 +108,7 @@ class SetPhoneNumberDialogFragment : DialogFragment() { } companion object { - const val TAG = "SetPhoneNumberDialogFragment" + val TAG: String = SetPhoneNumberDialogFragment::class.java.simpleName fun newInstance(): DialogFragment { return SetPhoneNumberDialogFragment() diff --git a/app/src/main/res/layout/dialog_set_phone_number.xml b/app/src/main/res/layout/dialog_set_phone_number.xml index aa28d6c5b5..7cf93be67c 100644 --- a/app/src/main/res/layout/dialog_set_phone_number.xml +++ b/app/src/main/res/layout/dialog_set_phone_number.xml @@ -21,8 +21,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" xmlns:app="http://schemas.android.com/apk/res-auto" - android:paddingStart="16dp" - android:paddingEnd="16dp"> + android:paddingStart="@dimen/standard_half_padding" + android:paddingEnd="@dimen/standard_half_padding"> - \ No newline at end of file + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 852b45b09f..90d283075f 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -571,7 +571,7 @@ How to translate with transifex: You can set your phone number so other users will be able to find you Invalid phone number Phone number set successfully - Enter Phone Number + Enter phone number No phone number integration due to missing permissions Chat via %s Account not found