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"?> <?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="139" android:versionCode="140"
android:versionName="1.17" > android:versionName="1.17" >
<uses-sdk <uses-sdk

View File

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

View File

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