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 26, 2024
1 parent 2577ada commit d705d7f
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 @@ -241,9 +241,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 @@ -638,12 +637,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 @@ -653,7 +650,6 @@ class MainActivity : AppCompatActivity(), Logging {
fragmentTransaction.commit()
return true
}

R.id.stress_test -> {
fun postPing() {
// Send ping message and arrange delayed recursion.
Expand All @@ -671,12 +667,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 @@ -686,22 +680,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 @@ -711,7 +701,6 @@ class MainActivity : AppCompatActivity(), Logging {
fragmentTransaction.commit()
return true
}

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

0 comments on commit d705d7f

Please sign in to comment.