File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
java/org/fossasia/openevent/general/auth Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import androidx.lifecycle.Observer
22
22
import com.google.android.material.snackbar.Snackbar
23
23
import com.squareup.picasso.Picasso
24
24
import kotlinx.android.synthetic.main.fragment_edit_profile.view.editProfileCoordinatorLayout
25
- import kotlinx.android.synthetic.main.fragment_edit_profile.view.buttonUpdate
25
+ import kotlinx.android.synthetic.main.fragment_edit_profile.view.updateButton
26
26
import kotlinx.android.synthetic.main.fragment_edit_profile.view.firstName
27
27
import kotlinx.android.synthetic.main.fragment_edit_profile.view.lastName
28
28
import kotlinx.android.synthetic.main.fragment_edit_profile.view.profilePhoto
@@ -105,7 +105,7 @@ class EditProfileFragment : Fragment() {
105
105
permissionGranted = (ContextCompat .checkSelfPermission(requireContext(),
106
106
Manifest .permission.READ_EXTERNAL_STORAGE ) == PackageManager .PERMISSION_GRANTED )
107
107
108
- rootView.buttonUpdate .setOnClickListener {
108
+ rootView.updateButton .setOnClickListener {
109
109
hideSoftKeyboard(context, rootView)
110
110
editProfileViewModel.updateProfile(encodedImage, rootView.firstName.text.toString(),
111
111
rootView.lastName.text.toString())
Original file line number Diff line number Diff line change 24
24
app : layout_constraintRight_toRightOf =" parent"
25
25
android : layout_gravity =" center_horizontal"
26
26
android : padding =" @dimen/padding_large"
27
- android : contentDescription =" Profile Photo "
27
+ android : contentDescription =" @string/profile_photo "
28
28
app : srcCompat =" @drawable/ic_account_circle_grey" />
29
29
30
30
<com .google.android.material.floatingactionbutton.FloatingActionButton
31
31
android : id =" @+id/profilePhotoFab"
32
32
android : layout_width =" @dimen/fab_width"
33
33
android : layout_height =" @dimen/fab_height"
34
34
app : fabCustomSize =" @dimen/fab_height"
35
- app : backgroundTint =" @color/colorPrimary"
36
35
android : layout_margin =" @dimen/layout_margin_medium"
37
36
app : layout_constraintRight_toRightOf =" @id/profilePhoto"
38
37
app : layout_constraintBottom_toBottomOf =" @id/profilePhoto"
79
78
80
79
</LinearLayout >
81
80
82
- <androidx .appcompat.widget.AppCompatButton
83
- android : id =" @+id/buttonUpdate "
81
+ <Button
82
+ android : id =" @+id/updateButton "
84
83
android : layout_width =" match_parent"
85
84
android : layout_height =" wrap_content"
86
85
android : layout_gravity =" center"
87
- app : backgroundTint =" @color/colorPrimary"
88
86
android : text =" @string/update"
89
87
android : textColor =" @android:color/white" />
90
88
Original file line number Diff line number Diff line change 68
68
<string name =" last_name_optional" >Last Name (Optional)</string >
69
69
<string name =" welcome_back" >Welcome back!</string >
70
70
<string name =" update" >Update</string >
71
+ <string name =" profile_photo" >Profile Photo</string >
71
72
72
73
<!-- eventyay-->
73
74
<string name =" eventyay_logo" translatable =" false" >eventyay</string >
You can’t perform that action at this time.
0 commit comments