fix dual refresh race condition when doing openFeedArticles() in tablet
mode
This commit is contained in:
parent
0d4bd2f446
commit
da36af7b42
@ -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="134"
|
android:versionCode="135"
|
||||||
android:versionName="1.12" >
|
android:versionName="1.13" >
|
||||||
|
|
||||||
<uses-sdk
|
<uses-sdk
|
||||||
android:minSdkVersion="8"
|
android:minSdkVersion="8"
|
||||||
|
@ -169,6 +169,7 @@ public class ArticlePager extends Fragment {
|
|||||||
} catch (BadParcelableException e) {
|
} catch (BadParcelableException e) {
|
||||||
if (getActivity() != null) {
|
if (getActivity() != null) {
|
||||||
getActivity().finish();
|
getActivity().finish();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -291,8 +291,10 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (m_articles.size() == 0 || !m_feed.equals(GlobalState.getInstance().m_activeFeed)) {
|
if (m_articles.size() == 0 || !m_feed.equals(GlobalState.getInstance().m_activeFeed)) {
|
||||||
|
if (m_activity.getSupportFragmentManager().findFragmentByTag(CommonActivity.FRAG_ARTICLE) == null) {
|
||||||
refresh(false);
|
refresh(false);
|
||||||
GlobalState.getInstance().m_activeFeed = m_feed;
|
GlobalState.getInstance().m_activeFeed = m_feed;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
notifyUpdated();
|
notifyUpdated();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user