use deferred loading on headlinesactivity refresh, bump version
This commit is contained in:
parent
b5a521edee
commit
f1d50cad48
@ -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"
|
||||
|
@ -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()
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user