From c38d5550e5ceca78fea002b678372e0b2411bb57 Mon Sep 17 00:00:00 2001 From: osodebailar Date: Mon, 25 Apr 2022 17:34:48 +0200 Subject: [PATCH] add group to option menu for static entries --- app/src/main/java/info/nightscout/androidaps/MainActivity.kt | 1 + app/src/main/res/menu/menu_main.xml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/MainActivity.kt b/app/src/main/java/info/nightscout/androidaps/MainActivity.kt index 9a5d86db99..e4960d913f 100644 --- a/app/src/main/java/info/nightscout/androidaps/MainActivity.kt +++ b/app/src/main/java/info/nightscout/androidaps/MainActivity.kt @@ -296,6 +296,7 @@ class MainActivity : NoSplashAppCompatActivity() { } override fun onCreateOptionsMenu(menu: Menu): Boolean { + menu.setGroupDividerEnabled(true) this.menu = menu menuInflater.inflate(R.menu.menu_main, menu) pluginPreferencesMenuItem = menu.findItem(R.id.nav_plugin_preferences) diff --git a/app/src/main/res/menu/menu_main.xml b/app/src/main/res/menu/menu_main.xml index 42e55843f0..1cd9f44799 100644 --- a/app/src/main/res/menu/menu_main.xml +++ b/app/src/main/res/menu/menu_main.xml @@ -44,6 +44,7 @@ android:orderInCategory="1" app:showAsAction="never" android:title="@string/nav_profilehelper" /> + - +