Skip to content

Commit

Permalink
fix: revert some spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-espie committed Nov 28, 2024
1 parent 004ca52 commit fa50ed1
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions app/src/main/java/com/geeksville/mesh/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,8 @@ class MainActivity : AppCompatActivity(), Logging {
val mainTab = tab?.position ?: 0
model.setCurrentTab(mainTab)
}

override fun onTabUnselected(tab: TabLayout.Tab?) {}
override fun onTabReselected(tab: TabLayout.Tab?) {}
override fun onTabUnselected(tab: TabLayout.Tab?) { }
override fun onTabReselected(tab: TabLayout.Tab?) { }
})

binding.composeView.setContent {
Expand Down Expand Up @@ -653,12 +652,10 @@ class MainActivity : AppCompatActivity(), Logging {
getVersionInfo()
return true
}

R.id.connectStatusImage -> {
Toast.makeText(applicationContext, item.title, Toast.LENGTH_SHORT).show()
return true
}

R.id.debug -> {
val fragmentManager: FragmentManager = supportFragmentManager
val fragmentTransaction: FragmentTransaction = fragmentManager.beginTransaction()
Expand All @@ -668,7 +665,6 @@ class MainActivity : AppCompatActivity(), Logging {
fragmentTransaction.commit()
return true
}

R.id.stress_test -> {
fun postPing() {
// Send ping message and arrange delayed recursion.
Expand All @@ -686,12 +682,10 @@ class MainActivity : AppCompatActivity(), Logging {
}
return true
}

R.id.radio_config -> {
supportFragmentManager.navigateToNavGraph()
return true
}

R.id.save_messages_csv -> {
val intent = Intent(Intent.ACTION_CREATE_DOCUMENT).apply {
addCategory(Intent.CATEGORY_OPENABLE)
Expand All @@ -701,22 +695,18 @@ class MainActivity : AppCompatActivity(), Logging {
createDocumentLauncher.launch(intent)
return true
}

R.id.theme -> {
chooseThemeDialog()
return true
}

R.id.preferences_language -> {
chooseLangDialog()
return true
}

R.id.show_intro -> {
startActivity(Intent(this, AppIntroduction::class.java))
return true
}

R.id.preferences_quick_chat -> {
val fragmentManager: FragmentManager = supportFragmentManager
val fragmentTransaction: FragmentTransaction = fragmentManager.beginTransaction()
Expand All @@ -726,7 +716,6 @@ class MainActivity : AppCompatActivity(), Logging {
fragmentTransaction.commit()
return true
}

else -> super.onOptionsItemSelected(item)
}
}
Expand Down

0 comments on commit fa50ed1

Please sign in to comment.