Skip to content

Commit

Permalink
Merge pull request #1 from nur-shuvo/develop
Browse files Browse the repository at this point in the history
merge to main.
  • Loading branch information
Humayan-Kabir authored Feb 12, 2023
2 parents 7809263 + eed5d3c commit f4621c1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class TranslateMainActivity : AppCompatActivity(), DrawerLayout.DrawerListener {
}

private fun setOnCLickOnToggleButton() {
toggleLanguage?.setOnClickListener() {
toggleLanguage?.setOnClickListener {
if (firstLanguage?.text == "Bengali") {
firstLanguage?.text = "English"
secondLanguage?.text = "Bengali"
Expand All @@ -180,7 +180,7 @@ class TranslateMainActivity : AppCompatActivity(), DrawerLayout.DrawerListener {
viewModel.isBengaliToEnglish = true
}
}
toggleParentLanguage?.setOnClickListener() {
toggleParentLanguage?.setOnClickListener {
if (firstLanguage?.text == "Bengali") {
firstLanguage?.text = "English"
secondLanguage?.text = "Bengali"
Expand Down

0 comments on commit f4621c1

Please sign in to comment.