This repository has been archived by the owner on Jan 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Kamila/add friends button #196
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
a1e7c63
user_search_item_layout: add button to add friedns
kamilababayeva 101ab77
UserProfileAdapter: add friend if the button "Add" is pressed
kamilababayeva 93f1119
UserProfile: add field UID
kamilababayeva a19cbf1
SearchUserActivity: set user uid in a profile
kamilababayeva 8a28e12
UserRepo: function to update subFields boolean value
kamilababayeva ef9d279
UserProfile: set uid in the end
kamilababayeva b70cf33
UserProfileAdapter: add user only if the current user is logged in
kamilababayeva d86ec70
SearchUserActivityTest: add test to check button press
kamilababayeva 4e1a569
SearchUserActivity: remove unnecessary code
kamilababayeva 20170bb
UsersRepo: fix comments and spaces
kamilababayeva 4a1b034
UserProfileAdapter: inject authenticator and usersRepo
kamilababayeva 5960d85
CreateProfileActivity: remove unnecessary libraries
kamilababayeva 5ad51b5
CreateProfielActivity: change var to val
kamilababayeva 7cc6845
AuthenticationActivity:; remove redundant libraries
kamilababayeva 938fd65
SearchUserActivity: mock Authneticator
kamilababayeva 38fe5c7
SearchUserActivity: mock usersRepo
kamilababayeva 70ec5da
move user search to users' repo
kamilababayeva e9ceadd
move correct logic to search for users by username from activity to u…
kamilababayeva e0f63c0
remove library mock
kamilababayeva 961f87b
remove unnecessary libraries
kamilababayeva b2ce075
DownloadActivityTest: remove test that is breaking
kamilababayeva 2fe0be5
merge main
kamilababayeva b3ac589
change button color, set string
kamilababayeva 34e3579
UserRepo: fix the comment
kamilababayeva 0fffe05
Space in app/src/main/java/ch/sdp/vibester/activity/SearchUserActivit…
kamilababayeva e2c4361
remove libraries, fix the comment
kamilababayeva File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,6 @@ data class User( | |
var totalGames: Int = 0, | ||
var bestScore: Int = 0, | ||
var correctSongs: Int = 0, | ||
var ranking: Int = 0 | ||
) : Serializable {} | ||
var ranking: Int = 0, | ||
var uid: String = "" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do we need an uid if the handle is already unique for each user? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was not sure whether the handle is correct. I saved the uid since the user is stored by it. We can discuss it next meeting. |
||
) : Serializable {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe explain in a comment why this test is commented
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!