From 5c000633bed306295021200d4ac0f30d7309e0f5 Mon Sep 17 00:00:00 2001 From: jiabaow Date: Thu, 24 Mar 2022 22:21:15 +0100 Subject: [PATCH] add doc and reformat --- .../ch/sdp/vibester/GenreTemporaryTest.kt | 2 +- .../activity/LyricsBelongGameActivity.kt | 6 +++++ .../ch/sdp/vibester/activity/MainActivity.kt | 1 - .../vibester/activity/TypingGameActivity.kt | 16 +++++------ .../ch/sdp/vibester/api/ItunesMusicApi.kt | 8 +++--- .../java/ch/sdp/vibester/api/LastfmApi.kt | 8 +++--- .../java/ch/sdp/vibester/api/LastfmHelper.kt | 27 ++++++++++++------- .../vibester/auth/FireBaseAuthenticator.kt | 1 - .../main/java/ch/sdp/vibester/model/Song.kt | 2 +- .../java/ch/sdp/vibester/model/SongList.kt | 8 +++--- 10 files changed, 45 insertions(+), 34 deletions(-) diff --git a/app/src/androidTest/java/ch/sdp/vibester/GenreTemporaryTest.kt b/app/src/androidTest/java/ch/sdp/vibester/GenreTemporaryTest.kt index da50ebd09..b2d7bf879 100644 --- a/app/src/androidTest/java/ch/sdp/vibester/GenreTemporaryTest.kt +++ b/app/src/androidTest/java/ch/sdp/vibester/GenreTemporaryTest.kt @@ -34,7 +34,7 @@ class GenreTemporaryTest { } @Test - fun GenreLayoutIsDisplayed() { + fun genreLayoutIsDisplayed() { onView(withId(R.id.rockButton)).check(matches(isDisplayed())) onView(withId(R.id.kpopButton)).check(matches(isDisplayed())) onView(withId(R.id.topTracksButton)).check(matches(isDisplayed())) diff --git a/app/src/main/java/ch/sdp/vibester/activity/LyricsBelongGameActivity.kt b/app/src/main/java/ch/sdp/vibester/activity/LyricsBelongGameActivity.kt index 4a42f68b8..32689f53d 100644 --- a/app/src/main/java/ch/sdp/vibester/activity/LyricsBelongGameActivity.kt +++ b/app/src/main/java/ch/sdp/vibester/activity/LyricsBelongGameActivity.kt @@ -53,11 +53,17 @@ class LyricsBelongGameActivity : AppCompatActivity() { } } + /** + * display the given String in lyricResult + */ private fun updateSpeechResult(speechInput: String) { findViewById(R.id.lyricResult).text = speechInput findViewById