/* TEST CODE */
Thread.Sleep(10000);
badge.Count = 3;
- BadgeControl.Update(badge);
+ try
+ {
+ BadgeControl.Update(badge);
+ }
+ catch (Exception e)
+ {
+ LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "badge is removed already : " + e.Message);
+ }
}));
th.IsBackground = true;
/* TEST CODE */
Thread.Sleep(10000);
badge.Visible = false;
- BadgeControl.Update(badge);
+ try
+ {
+ BadgeControl.Update(badge);
+ }
+ catch (Exception e)
+ {
+ LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "badge is removed already : " + e.Message);
+ }
}));
th.IsBackground = true;
/* TEST CODE */
Thread.Sleep(10000);
- BadgeControl.Remove(badge);
+ try
+ {
+ BadgeControl.Remove(badge);
+ }
+ catch (Exception e)
+ {
+ LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "badge is removed already : " + e.Message);
+ }
}));
th.IsBackground = true;