Skip to content

Commit

Permalink
Merge pull request #2930 from wordpress-mobile/issue/2920-animate-on-…
Browse files Browse the repository at this point in the history
…main-thread

Check note badge on main thread from simperium listener
  • Loading branch information
daniloercoli committed Jun 30, 2015
2 parents 51e52ab + f073ff6 commit a0ac6d4
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,14 @@ public void onEventMainThread(NotificationEvents.NotificationsChanged event) {
@Override
public void onNetworkChange(Bucket<Note> noteBucket, Bucket.ChangeType changeType, String s) {
if (changeType == Bucket.ChangeType.INSERT || changeType == Bucket.ChangeType.MODIFY) {
mTabLayout.checkNoteBadge();
runOnUiThread(new Runnable() {
@Override
public void run() {
if (!isFinishing()) {
mTabLayout.checkNoteBadge();
}
}
});
}
}

Expand Down

0 comments on commit a0ac6d4

Please sign in to comment.