Doing this programmatically is just a no-go when themes are being set in some other places (the toolbar is using a custom theme, in this case), so, instead of hunting down the proper theme, just let the system do its work.
8 lines
338 B
XML
8 lines
338 B
XML
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
<item
|
|
android:id="@+id/menu_item_restore_default"
|
|
android:title="@string/restore_defaults"
|
|
android:icon="@drawable/ic_settings_backup_restore"
|
|
app:showAsAction="always" />
|
|
</menu>
|