add group to option menu for static entries
This commit is contained in:
parent
d51955f739
commit
c38d5550e5
2 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue