Skip to content
Browse files

fix UI freeze

  • Loading branch information...
1 parent 9d3516b commit 9271e077b1f9799a44331b4440cbe50ada6a9315 @cail committed
Showing with 7 additions and 2 deletions.
  1. +7 −2 Fleux/Android/FleuxControl.cs
View
9 Fleux/Android/FleuxControl.cs
@@ -1,3 +1,5 @@
+using System.Threading;
+
namespace Fleux.Controls
{
using System;
@@ -285,8 +287,11 @@ protected override void ForcedInvalidate()
if (!this.invalidating)
{
this.invalidating = true;
- base.ForcedInvalidate();
- this.invalidating = false;
+ try{
+ base.ForcedInvalidate();
+ }finally{
+ this.invalidating = false;
+ }
}
}
}

0 comments on commit 9271e07

Please sign in to comment.
Something went wrong with that request. Please try again.