From 91f2e2e884503fa370aca76c329eff232c2fc8c9 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 29 Aug 2018 23:44:58 +0200 Subject: Added opening of settings on menu click --- app/src/main/java/com/no_name/no_name/MainActivity.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'app/src/main/java') 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() + // 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() + true + } else -> super.onOptionsItemSelected(item) } } -- cgit v1.2.3