use deferred loading on headlinesactivity refresh, bump version

This commit is contained in:
Andrew Dolgov 2012-09-20 23:05:34 +04:00
parent b5a521edee
commit f1d50cad48
3 changed files with 21 additions and 11 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.fox.ttrss"
android:versionCode="103"
android:versionName="0.8.2" >
android:versionCode="104"
android:versionName="0.8.3" >
<uses-sdk
android:minSdkVersion="8"

View File

@ -152,11 +152,9 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe
ft.replace(R.id.headlines_fragment, new LoadingFragment(), null);
ft.commit();
Handler handler = new Handler();
final Feed fFeed = feed;
handler.postDelayed(new Runnable() {
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
FragmentTransaction ft = getSupportFragmentManager()

View File

@ -60,9 +60,7 @@ public class HeadlinesActivity extends OnlineActivity implements HeadlinesEventL
setTitle(feed.title);
Handler handler = new Handler();
handler.postDelayed(new Runnable() {
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
@ -191,14 +189,28 @@ public class HeadlinesActivity extends OnlineActivity implements HeadlinesEventL
hf.setActiveArticle(article);
ArticlePager af = new ArticlePager(article, hf.getFeed());
FragmentTransaction ft = getSupportFragmentManager()
.beginTransaction();
ft.replace(R.id.article_fragment, af, FRAG_ARTICLE);
ft.replace(R.id.article_fragment, new LoadingFragment(), null);
ft.commit();
final Article fArticle = article;
final Feed fFeed = hf.getFeed();
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
FragmentTransaction ft = getSupportFragmentManager()
.beginTransaction();
ArticlePager af = new ArticlePager(fArticle, fFeed);
ft.replace(R.id.article_fragment, af, FRAG_ARTICLE);
ft.commit();
}
}, 10);
}
}
}