Skip to content

Commit

Permalink
Add missing annotation, synthetic accessor methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Rummler committed Mar 20, 2017
1 parent 05fb8df commit cfb6ff5
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

public class MainActivity extends AppCompatActivity {

private AnimatedSvgView svgView;
private int index = -1;
/*package*/ AnimatedSvgView svgView;
/*package*/ int index = -1;

@Override protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Expand All @@ -52,7 +52,7 @@ public class MainActivity extends AppCompatActivity {

svgView.setOnStateChangeListener(new AnimatedSvgView.OnStateChangeListener() {

@Override public void onStateChange(int state) {
@Override public void onStateChange(@AnimatedSvgView.State int state) {
if (state == AnimatedSvgView.STATE_TRACE_STARTED) {
findViewById(R.id.btn_previous).setEnabled(false);
findViewById(R.id.btn_next).setEnabled(false);
Expand Down Expand Up @@ -81,12 +81,6 @@ private void setSvg(SVG svg) {
svgView.setViewportSize(svg.width, svg.height);
svgView.setTraceResidueColor(0x32000000);
svgView.setTraceColors(svg.colors);

svgView.setTraceTime(10_000);
svgView.setTraceTimePerGlyph(10_000);
svgView.setFillTime(5_000);
svgView.setFillStart(5_000);

svgView.rebuildGlyphData();
svgView.start();
}
Expand Down

0 comments on commit cfb6ff5

Please sign in to comment.