Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
Signed-off-by: rapterjet2004 <[email protected]>
Signed-off-by: Marcel Hibbe <[email protected]>
  • Loading branch information
rapterjet2004 authored and mahibi committed Mar 22, 2024
1 parent 6c52e73 commit 20378ae
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down
7 changes: 4 additions & 3 deletions app/src/main/res/layout/dialog_set_phone_number.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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">

<com.google.android.material.textfield.TextInputLayout
android:id="@+id/phone_input_layout"
Expand All @@ -35,7 +35,8 @@
android:id="@+id/phone_edit_text_field"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:inputType="phone" />

</com.google.android.material.textfield.TextInputLayout>
</FrameLayout>
</FrameLayout>
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ How to translate with transifex:
<string name="nc_settings_phone_book_integration_phone_number_dialog_description">You can set your phone number so other users will be able to find you</string>
<string name="nc_settings_phone_book_integration_phone_number_dialog_invalid">Invalid phone number</string>
<string name="nc_settings_phone_book_integration_phone_number_dialog_success">Phone number set successfully</string>
<string name="nc_settings_phone_book_integration_phone_number_dialog_edit_text_hint">Enter Phone Number</string>
<string name="nc_settings_phone_book_integration_phone_number_dialog_edit_text_hint">Enter phone number</string>
<string name="no_phone_book_integration_due_to_permissions">No phone number integration due to missing permissions</string>
<string name="nc_phone_book_integration_chat_via">Chat via %s</string>
<string name="nc_phone_book_integration_account_not_found">Account not found</string>
Expand Down

0 comments on commit 20378ae

Please sign in to comment.