Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Margaux/winner display #189

Merged
merged 2 commits into from
Apr 19, 2022
Merged

Margaux/winner display #189

merged 2 commits into from
Apr 19, 2022

Conversation

zwierski
Copy link
Collaborator

This PR adds the feature of displaying the winner's name at the end of a buzzer game, below the stats screen.

@codeclimate
Copy link

codeclimate bot commented Apr 19, 2022

Code Climate has analyzed commit 8a87248 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (80% is the threshold).

This pull request will bring the total coverage in the repository to 88.5% (0.0% change).

View more on Code Climate.

@kamilababayeva kamilababayeva self-requested a review April 19, 2022 07:16
Copy link
Collaborator

@kamilababayeva kamilababayeva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! I tried myself, it worked! The only question is what should we do if two or more users have same high score....

@jiabaow jiabaow self-requested a review April 19, 2022 08:00
Copy link
Collaborator

@jiabaow jiabaow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the improvement! I left a minor comment about the string.
(I think you forget to add the screen shot)

@@ -46,12 +47,9 @@ class GameEndingActivity : AppCompatActivity() {

if (intent.hasExtra("Winner Name")) {
val winner = intent.getStringExtra("Winner Name")
// FIXME: commented until I get the winner panel to work without crashing the app
/*
if (winner!=null) {
findViewById<TextView>(R.id.winnerText).text="And the winner is... $winner!"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can use string.xml

@zwierski zwierski linked an issue Apr 19, 2022 that may be closed by this pull request
@zwierski zwierski merged commit 7529331 into main Apr 19, 2022
@zwierski zwierski deleted the margaux/timer-buzzer-screen branch April 19, 2022 10:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix the display of the winner's name after a buzzer game.
3 participants