api: MenuEntry::setDeprioritized return self
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user