From 732a2db1663a999dfcb65c46757c3a479ae683fd Mon Sep 17 00:00:00 2001 From: dece Date: Tue, 11 Jan 2022 17:06:04 +0100 Subject: [PATCH] WIP --- .../java/dev/lowrespalmtree/comet/MainActivity.kt | 13 +++++++++++++ app/src/main/res/menu/drawer.xml | 5 +++++ app/src/main/res/values/strings.xml | 1 + 3 files changed, 19 insertions(+) diff --git a/app/src/main/java/dev/lowrespalmtree/comet/MainActivity.kt b/app/src/main/java/dev/lowrespalmtree/comet/MainActivity.kt index 87a07e1..8c658b2 100644 --- a/app/src/main/java/dev/lowrespalmtree/comet/MainActivity.kt +++ b/app/src/main/java/dev/lowrespalmtree/comet/MainActivity.kt @@ -1,6 +1,8 @@ package dev.lowrespalmtree.comet import android.os.Bundle +import android.util.Log +import android.view.View import androidx.appcompat.app.AppCompatActivity import androidx.navigation.fragment.NavHostFragment import androidx.navigation.ui.setupWithNavController @@ -17,7 +19,18 @@ class MainActivity : AppCompatActivity() { supportFragmentManager.findFragmentById(R.id.nav_host_fragment)?.also { navHost -> findViewById(R.id.drawer_navigation)?.apply { setupWithNavController((navHost as NavHostFragment).navController) +// setNavigationItemSelectedListener { menuItem -> +// when (menuItem.itemId) { +// R.id.home -> Log.w("AJAJ", "clickkkkk") +// else -> +// } +// true +// } } } } + + fun prout(item: android.view.MenuItem) { + Log.w("AJAJ", "koiluuut") + } } \ No newline at end of file diff --git a/app/src/main/res/menu/drawer.xml b/app/src/main/res/menu/drawer.xml index 56688f7..299702e 100644 --- a/app/src/main/res/menu/drawer.xml +++ b/app/src/main/res/menu/drawer.xml @@ -1,5 +1,10 @@ + Automatically download attachments for incoming emails Only download attachments when manually requested + Home \ No newline at end of file