From 055707ce678058179bda1656860211e7a6e8c5e3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 10 Jan 2012 15:13:46 +0400 Subject: [PATCH] use runOnUiThread in RefreshTask --- src/org/fox/ttrss/MainActivity.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/org/fox/ttrss/MainActivity.java b/src/org/fox/ttrss/MainActivity.java index e89b6adc..c4df46a4 100644 --- a/src/org/fox/ttrss/MainActivity.java +++ b/src/org/fox/ttrss/MainActivity.java @@ -333,10 +333,16 @@ public class MainActivity extends FragmentActivity implements OnlineServices { if (networkInfo != null && networkInfo.isAvailable() && networkInfo.isConnected()) { - if (!m_enableCats || m_activeCategory != null) - refreshFeeds(); - else - refreshCategories(); + runOnUiThread(new Runnable() { + @Override + public void run() { + if (!m_enableCats || m_activeCategory != null) + refreshFeeds(); + else + refreshCategories(); + } + }); + } } }