api: MenuEntry::setDeprioritized return self
This commit is contained in:
@@ -84,7 +84,7 @@ public interface MenuEntry
|
||||
* @return
|
||||
*/
|
||||
boolean isDeprioritized();
|
||||
void setDeprioritized(boolean deprioritized);
|
||||
MenuEntry setDeprioritized(boolean deprioritized);
|
||||
|
||||
/**
|
||||
* Set a callback to be called when this menu option is clicked
|
||||
|
||||
@@ -138,7 +138,7 @@ public class TestMenuEntry implements MenuEntry
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDeprioritized(boolean deprioritized)
|
||||
public MenuEntry setDeprioritized(boolean deprioritized)
|
||||
{
|
||||
if (deprioritized)
|
||||
{
|
||||
@@ -154,6 +154,8 @@ public class TestMenuEntry implements MenuEntry
|
||||
type -= MenuAction.MENU_ACTION_DEPRIORITIZE_OFFSET;
|
||||
}
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user