Loading core/java/android/widget/ProgressBar.java +16 −0 Original line number Diff line number Diff line Loading @@ -934,4 +934,20 @@ public class ProgressBar extends View { setProgress(ss.progress); setSecondaryProgress(ss.secondaryProgress); } @Override protected void onAttachedToWindow() { super.onAttachedToWindow(); if (mIndeterminate) { startAnimation(); } } @Override protected void onDetachedFromWindow() { super.onDetachedFromWindow(); if (mIndeterminate) { stopAnimation(); } } } Loading
core/java/android/widget/ProgressBar.java +16 −0 Original line number Diff line number Diff line Loading @@ -934,4 +934,20 @@ public class ProgressBar extends View { setProgress(ss.progress); setSecondaryProgress(ss.secondaryProgress); } @Override protected void onAttachedToWindow() { super.onAttachedToWindow(); if (mIndeterminate) { startAnimation(); } } @Override protected void onDetachedFromWindow() { super.onDetachedFromWindow(); if (mIndeterminate) { stopAnimation(); } } }