Skip to content

Commit

Permalink
Added missing override annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
balysv committed Oct 12, 2014
1 parent dc52f52 commit f8326a2
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,45 +30,55 @@ public abstract class MaterialMenuBase implements MaterialMenu {

protected MaterialMenuDrawable.IconState currentState = MaterialMenuDrawable.IconState.BURGER;

@Override
public final void setState(MaterialMenuDrawable.IconState state) {
currentState = state;
getDrawable().setIconState(state);
}

@Override
public final MaterialMenuDrawable.IconState getState() {
return getDrawable().getIconState();
}

@Override
public final void animateState(MaterialMenuDrawable.IconState state) {
currentState = state;
getDrawable().animateIconState(state, false);
}

@Override
public final void animatePressedState(MaterialMenuDrawable.IconState state) {
currentState = state;
getDrawable().animateIconState(state, true);
}

@Override
public final void setColor(int color) {
getDrawable().setColor(color);
}

@Override
public final void setTransformationDuration(int duration) {
getDrawable().setTransformationDuration(duration);
}

@Override
public final void setPressedDuration(int duration) {
getDrawable().setPressedDuration(duration);
}

@Override
public final void setInterpolator(Interpolator interpolator) {
getDrawable().setInterpolator(interpolator);
}

@Override
public final void setRTLEnabled(boolean rtlEnabled) {
getDrawable().setRTLEnabled(rtlEnabled);
}

@Override
public final void setTransformationOffset(MaterialMenuDrawable.AnimationState animationState, float value) {
currentState = getDrawable().setTransformationOffset(animationState, value);
}
Expand Down

0 comments on commit f8326a2

Please sign in to comment.