Browse Source

formatting

Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Julius Linus 1 year ago
parent
commit
20378ae89c

+ 7 - 3
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()

+ 4 - 3
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">
 
     <com.google.android.material.textfield.TextInputLayout
         android:id="@+id/phone_input_layout"
@@ -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>

+ 1 - 1
app/src/main/res/values/strings.xml

@@ -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>