add group to option menu for static entries

This commit is contained in:
osodebailar 2022-04-25 17:34:48 +02:00
parent d51955f739
commit c38d5550e5
2 changed files with 3 additions and 1 deletions

View file

@ -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)

View file

@ -44,6 +44,7 @@
android:orderInCategory="1"
app:showAsAction="never"
android:title="@string/nav_profilehelper" />
<group android:id="@+id/about_exit">
<item
android:id="@+id/nav_about"
android:orderInCategory="1"
@ -54,5 +55,5 @@
android:orderInCategory="1"
app:showAsAction="never"
android:title="@string/nav_exit" />
</group>
</menu>