Automation: remove not working menu item

This commit is contained in:
Milos Kozak 2023-03-02 11:10:52 +01:00
parent a4c1e724bf
commit 3a950bcd7f
2 changed files with 0 additions and 8 deletions

View file

@ -61,7 +61,6 @@ class AutomationFragment : DaggerFragment(), OnStartDragListener, MenuProvider {
const val ID_MENU_ADD = 504 const val ID_MENU_ADD = 504
const val ID_MENU_RUN = 505 const val ID_MENU_RUN = 505
const val ID_MENU_EDIT_MOVE = 506
} }
private var disposable: CompositeDisposable = CompositeDisposable() private var disposable: CompositeDisposable = CompositeDisposable()
@ -98,7 +97,6 @@ class AutomationFragment : DaggerFragment(), OnStartDragListener, MenuProvider {
actionHelper.onCreateOptionsMenu(menu, inflater) actionHelper.onCreateOptionsMenu(menu, inflater)
menu.add(Menu.FIRST, ID_MENU_ADD, 0, rh.gs(R.string.add_automation)).setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER) menu.add(Menu.FIRST, ID_MENU_ADD, 0, rh.gs(R.string.add_automation)).setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER)
menu.add(Menu.FIRST, ID_MENU_RUN, 0, rh.gs(R.string.run_automations)).setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER) menu.add(Menu.FIRST, ID_MENU_RUN, 0, rh.gs(R.string.run_automations)).setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER)
menu.add(Menu.FIRST, ID_MENU_EDIT_MOVE, 0, rh.gs(R.string.remove_sort)).setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER)
menu.setGroupDividerEnabled(true) menu.setGroupDividerEnabled(true)
} }
@ -115,11 +113,6 @@ class AutomationFragment : DaggerFragment(), OnStartDragListener, MenuProvider {
true true
} }
ID_MENU_EDIT_MOVE -> {
actionHelper.startAction()
true
}
else -> super.onContextItemSelected(item) else -> super.onContextItemSelected(item)
} }

View file

@ -119,7 +119,6 @@
<string name="system_automation">System automation</string> <string name="system_automation">System automation</string>
<string name="run_automations">Run automations</string> <string name="run_automations">Run automations</string>
<string name="add_automation">Add rule</string> <string name="add_automation">Add rule</string>
<string name="remove_sort">Remove/sort</string>
<string name="stop_processing">Stop processing</string> <string name="stop_processing">Stop processing</string>
<!-- WeekdayPicker --> <!-- WeekdayPicker -->