aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--app/src/main/java/com/no_name/no_name/MainActivity.kt7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/src/main/java/com/no_name/no_name/MainActivity.kt b/app/src/main/java/com/no_name/no_name/MainActivity.kt
index 299f5eb..2417181 100644
--- a/app/src/main/java/com/no_name/no_name/MainActivity.kt
+++ b/app/src/main/java/com/no_name/no_name/MainActivity.kt
@@ -39,7 +39,7 @@ class MainActivity : AppCompatActivity() {
longToast("No internet connection!")
fab.setOnClickListener { view ->
- startActivity<SettingsActivity>()
+ // TODO: Add camera support
}
}
@@ -57,7 +57,10 @@ class MainActivity : AppCompatActivity() {
*/
override fun onOptionsItemSelected(item: MenuItem): Boolean {
return when (item.itemId) {
- R.id.action_settings -> true
+ R.id.action_settings -> {
+ startActivity<SettingsActivity>()
+ true
+ }
else -> super.onOptionsItemSelected(item)
}
}