replace incorrect datasetinvalidated calls with datasetchanged

This commit is contained in:
Andrew Dolgov 2013-02-27 10:45:12 +04:00
parent 72975a9a03
commit 807add7244
3 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.fox.ttrss"
android:versionCode="139"
android:versionCode="140"
android:versionName="1.17" >
<uses-sdk

View File

@ -293,7 +293,7 @@ public class FeedCategoriesFragment extends Fragment implements OnItemClickListe
setLoadingStatus(R.string.no_feeds_to_display, false);
else */
m_adapter.notifyDataSetInvalidated();
//m_adapter.notifyDataSetChanged(); (done by sortCats)
m_activity.setLoadingStatus(R.string.blank, false);
return;
@ -328,7 +328,7 @@ public class FeedCategoriesFragment extends Fragment implements OnItemClickListe
Collections.sort(m_cats, cmp);
try {
m_adapter.notifyDataSetInvalidated();
m_adapter.notifyDataSetChanged();
} catch (NullPointerException e) {
// adapter missing
}

View File

@ -423,7 +423,7 @@ public class FeedsFragment extends Fragment implements OnItemClickListener, OnSh
else */
m_activity.setLoadingStatus(R.string.blank, false);
m_adapter.notifyDataSetInvalidated();
//m_adapter.notifyDataSetChanged(); (done by sortFeeds)
if (m_enableFeedIcons && !m_feedIconsChecked &&
Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState()))
@ -550,7 +550,7 @@ public class FeedsFragment extends Fragment implements OnItemClickListener, OnSh
Collections.sort(m_feeds, cmp);
try {
m_adapter.notifyDataSetInvalidated();
m_adapter.notifyDataSetChanged();
} catch (NullPointerException e) {
// adapter missing
}
@ -636,7 +636,7 @@ public class FeedsFragment extends Fragment implements OnItemClickListener, OnSh
protected void onPostExecute(Integer result) {
if (isDetached()) return;
m_adapter.notifyDataSetInvalidated();
m_adapter.notifyDataSetChanged();
}
}