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"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="org.fox.ttrss"
|
package="org.fox.ttrss"
|
||||||
android:versionCode="103"
|
android:versionCode="104"
|
||||||
android:versionName="0.8.2" >
|
android:versionName="0.8.3" >
|
||||||
|
|
||||||
<uses-sdk
|
<uses-sdk
|
||||||
android:minSdkVersion="8"
|
android:minSdkVersion="8"
|
||||||
|
@ -152,11 +152,9 @@ public class FeedsActivity extends OnlineActivity implements HeadlinesEventListe
|
|||||||
ft.replace(R.id.headlines_fragment, new LoadingFragment(), null);
|
ft.replace(R.id.headlines_fragment, new LoadingFragment(), null);
|
||||||
ft.commit();
|
ft.commit();
|
||||||
|
|
||||||
Handler handler = new Handler();
|
|
||||||
|
|
||||||
final Feed fFeed = feed;
|
final Feed fFeed = feed;
|
||||||
|
|
||||||
handler.postDelayed(new Runnable() {
|
new Handler().postDelayed(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
FragmentTransaction ft = getSupportFragmentManager()
|
FragmentTransaction ft = getSupportFragmentManager()
|
||||||
|
@ -60,9 +60,7 @@ public class HeadlinesActivity extends OnlineActivity implements HeadlinesEventL
|
|||||||
|
|
||||||
setTitle(feed.title);
|
setTitle(feed.title);
|
||||||
|
|
||||||
Handler handler = new Handler();
|
new Handler().postDelayed(new Runnable() {
|
||||||
|
|
||||||
handler.postDelayed(new Runnable() {
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
|
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
|
||||||
@ -191,14 +189,28 @@ public class HeadlinesActivity extends OnlineActivity implements HeadlinesEventL
|
|||||||
|
|
||||||
hf.setActiveArticle(article);
|
hf.setActiveArticle(article);
|
||||||
|
|
||||||
ArticlePager af = new ArticlePager(article, hf.getFeed());
|
|
||||||
|
|
||||||
FragmentTransaction ft = getSupportFragmentManager()
|
FragmentTransaction ft = getSupportFragmentManager()
|
||||||
.beginTransaction();
|
.beginTransaction();
|
||||||
|
|
||||||
ft.replace(R.id.article_fragment, af, FRAG_ARTICLE);
|
ft.replace(R.id.article_fragment, new LoadingFragment(), null);
|
||||||
|
|
||||||
ft.commit();
|
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