private void IncreaseProgress(FloatingActionButton fab, int i) { if (i <= this.maxProgress) { fab.SetProgress(i, false); int progress = ++i; this.uiHandler.PostDelayed(() => IncreaseProgress(fab, progress), 30); } else { this.uiHandler.PostDelayed(() => fab.HideProgress(), 200); this.progressTypes.AddLast(ProgressType.ProgressNoAnimation); } }
private void IncreaseProgress(FloatingActionButton fab, int i) { if (i <= this.maxProgress) { fab.SetProgress(i, false); int progress = ++i; this.uiHandler.PostDelayed(()=>IncreaseProgress(fab, progress), 30); } else { this.uiHandler.PostDelayed(()=>fab.HideProgress(), 200); this.progressTypes.AddLast(ProgressType.ProgressNoAnimation); } }