api: MenuEntry::setDeprioritized return self

This commit is contained in:
Ron Young
2021-12-11 16:25:54 -06:00
committed by Adam
parent 1d5c63bfac
commit a0c14cf06a
2 changed files with 4 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ public interface MenuEntry
* @return * @return
*/ */
boolean isDeprioritized(); boolean isDeprioritized();
void setDeprioritized(boolean deprioritized); MenuEntry setDeprioritized(boolean deprioritized);
/** /**
* Set a callback to be called when this menu option is clicked * Set a callback to be called when this menu option is clicked

View File

@@ -138,7 +138,7 @@ public class TestMenuEntry implements MenuEntry
} }
@Override @Override
public void setDeprioritized(boolean deprioritized) public MenuEntry setDeprioritized(boolean deprioritized)
{ {
if (deprioritized) if (deprioritized)
{ {
@@ -154,6 +154,8 @@ public class TestMenuEntry implements MenuEntry
type -= MenuAction.MENU_ACTION_DEPRIORITIZE_OFFSET; type -= MenuAction.MENU_ACTION_DEPRIORITIZE_OFFSET;
} }
} }
return this;
} }
@Override @Override