use runOnUiThread in RefreshTask
This commit is contained in:
parent
adf1750387
commit
055707ce67
@ -333,11 +333,17 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
|
|||||||
if (networkInfo != null && networkInfo.isAvailable()
|
if (networkInfo != null && networkInfo.isAvailable()
|
||||||
&& networkInfo.isConnected()) {
|
&& networkInfo.isConnected()) {
|
||||||
|
|
||||||
|
runOnUiThread(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
if (!m_enableCats || m_activeCategory != null)
|
if (!m_enableCats || m_activeCategory != null)
|
||||||
refreshFeeds();
|
refreshFeeds();
|
||||||
else
|
else
|
||||||
refreshCategories();
|
refreshCategories();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user