Skip to content

Commit a3708a0

Browse files
committed
do not resetProgress on rotation
1 parent 3178060 commit a3708a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/main/java/com/codepath/customprogressbar/MainActivity.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ protected void onCreate(Bundle savedInstanceState) {
2121
super.onCreate(savedInstanceState);
2222
setContentView(R.layout.activity_main);
2323
ButterKnife.inject(this);
24-
resetProgress();
24+
25+
if (savedInstanceState == null) {
26+
resetProgress();
27+
}
2528
}
2629

2730
@OnClick(R.id.resetProgressBtn)

0 commit comments

Comments
 (0)