Skip to content

Commit

Permalink
solve klint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
subhajitxyz committed Aug 29, 2024
1 parent 2d77bc0 commit 6962a93
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ class MarkChaptersCompletedFragmentTest {

scenario.recreate()

scenario.onActivity { activity->
scenario.onActivity { activity ->
val newFragment = activity.supportFragmentManager
.findFragmentById(R.id.mark_chapters_completed_container) as MarkChaptersCompletedFragment

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ class MarkStoriesCompletedFragmentTest {

scenario.recreate()

scenario.onActivity { activity->
scenario.onActivity { activity ->
val newFragment = activity.supportFragmentManager
.findFragmentById(R.id.mark_stories_completed_container) as MarkStoriesCompletedFragment
val receivedSelectedStoryIdList =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ class MarkTopicsCompletedFragmentTest {

scenario.recreate()

scenario.onActivity { activity->
scenario.onActivity { activity ->
val newFragment = activity.supportFragmentManager
.findFragmentById(R.id.mark_topics_completed_container) as MarkTopicsCompletedFragment
val restoredTopicIdList =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class AppLanguageFragmentTest {

scenario.recreate()

scenario.onActivity { activity->
scenario.onActivity { activity ->
val newAppLanguageFragment = activity.supportFragmentManager
.findFragmentById(R.id.app_language_fragment_container) as AppLanguageFragment
val restoredLanguage =
Expand All @@ -261,7 +261,6 @@ class AppLanguageFragmentTest {
}
}


private fun verifyKiswahiliIsSelected(appLanguageActivity: AppLanguageActivity?) {
checkSelectedLanguage(index = KISWAHILI_BUTTON_INDEX, expectedLanguageName = "Kiswahili")
assertThat(appLanguageActivity?.appLanguageActivityPresenter?.getLanguageSelected()?.name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,11 @@ class AudioLanguageFragmentTest {
var fragment = activity.supportFragmentManager
.findFragmentById(R.id.audio_language_fragment_container) as AudioLanguageFragment
language = fragment.audioLanguageFragmentPresenterV1.getLanguageSelected()

}

scenario.recreate()

scenario.onActivity { activity->
scenario.onActivity { activity ->
val newfragment = activity.supportFragmentManager
.findFragmentById(R.id.audio_language_fragment_container) as AudioLanguageFragment
val restoredAudioLanguage =
Expand Down

0 comments on commit 6962a93

Please sign in to comment.