Skip to content

Commit 743fa0d

Browse files
committed
Improve sample not keeping dismissing huds in the background
1 parent 288bb7a commit 743fa0d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

BTProgressHUDDemo/MainViewModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ void KillAfter()
214214
timer = NSTimer.CreateRepeatingTimer(5, delegate
215215
{
216216
BTProgressHUD.Dismiss();
217+
timer.Invalidate();
218+
timer = null;
217219
});
218220
NSRunLoop.Current.AddTimer(timer, NSRunLoopMode.Common);
219221
}

0 commit comments

Comments
 (0)