Fixed potential bug in FeedlistFragment
This commit is contained in:
parent
8dc5c04aa2
commit
8f9db70291
|
@ -91,6 +91,7 @@ public class FeedlistFragment extends SherlockListFragment {
|
||||||
filter.addAction(DownloadService.ACTION_FEED_SYNC_COMPLETED);
|
filter.addAction(DownloadService.ACTION_FEED_SYNC_COMPLETED);
|
||||||
|
|
||||||
pActivity.registerReceiver(contentUpdate, filter);
|
pActivity.registerReceiver(contentUpdate, filter);
|
||||||
|
fla.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -102,6 +103,7 @@ public class FeedlistFragment extends SherlockListFragment {
|
||||||
private BroadcastReceiver contentUpdate = new BroadcastReceiver() {
|
private BroadcastReceiver contentUpdate = new BroadcastReceiver() {
|
||||||
@Override
|
@Override
|
||||||
public void onReceive(Context context, Intent intent) {
|
public void onReceive(Context context, Intent intent) {
|
||||||
|
Log.d(TAG, "Received contentUpdate Intent.");
|
||||||
fla.notifyDataSetChanged();
|
fla.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue