Skip to content

Commit fa6c38d

Browse files
committed
Cosmetic
1 parent 15c5f3a commit fa6c38d

1 file changed

Lines changed: 5 additions & 14 deletions

File tree

sample/src/main/java/info/hannes/logcat/sample/MainActivity.kt

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class MainActivity : AppCompatActivity() {
4646
R.id.nav_drawer_logfile -> startActivity(Intent(this, LogfileActivity::class.java))
4747
R.id.nav_drawer_both_logfiles -> startActivity(Intent(this, BothLogActivity::class.java))
4848
R.id.nav_drawer_other_github -> {
49-
val url = "https://github.com/hannesa2/Logcat"
49+
val url = "https://github.com/AppDevNext/Logcat"
5050
val i = Intent(Intent.ACTION_VIEW)
5151
i.data = Uri.parse(url)
5252
startActivity(i)
@@ -61,20 +61,11 @@ class MainActivity : AppCompatActivity() {
6161

6262
override fun onOptionsItemSelected(item: MenuItem): Boolean {
6363
when (item.itemId) {
64-
android.R.id.home -> {
65-
binding.drawerLayout.openDrawer(GravityCompat.START)
66-
}
67-
R.id.nav_drawer_logcat -> {
68-
startActivity(Intent(this, LogcatActivity::class.java))
69-
}
70-
R.id.nav_drawer_logfile -> {
71-
startActivity(Intent(this, LogfileActivity::class.java))
72-
}
73-
R.id.nav_drawer_both_logfiles -> {
74-
startActivity(Intent(this, BothLogActivity::class.java))
75-
}
64+
android.R.id.home -> binding.drawerLayout.openDrawer(GravityCompat.START)
65+
R.id.nav_drawer_logcat -> startActivity(Intent(this, LogcatActivity::class.java))
66+
R.id.nav_drawer_logfile -> startActivity(Intent(this, LogfileActivity::class.java))
67+
R.id.nav_drawer_both_logfiles -> startActivity(Intent(this, BothLogActivity::class.java))
7668
}
77-
7869
return true
7970
}
8071

0 commit comments

Comments
 (0)