if-statement was wrong

This commit is contained in:
daniel oeh 2012-11-16 20:10:52 +01:00
parent ef5dc7cb0e
commit 5090485a1e
2 changed files with 6 additions and 2 deletions

View File

@ -1347,9 +1347,13 @@ public class FeedManager {
public void loadExtraInformationOfItem(final Context context,
final FeedItem item, FeedManager.TaskCallback callback) {
if (AppConfig.DEBUG)
if (AppConfig.DEBUG) {
Log.d(TAG,
"Loading extra information of item with id " + item.getId());
if (item.getTitle() != null) {
Log.d(TAG, "Title: " + item.getTitle());
}
}
dbExec.execute(new FeedManager.Task(new Handler(), callback) {
@Override

View File

@ -109,7 +109,7 @@ public class ItemDescriptionFragment extends SherlockFragment {
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
if (item != null) {
if (item.getDescription() == null && item.getDescription() == null) {
if (item.getDescription() == null && item.getContentEncoded() == null) {
Log.i(TAG, "Loading data");
FeedManager.getInstance().loadExtraInformationOfItem(
getActivity(), item, new FeedManager.TaskCallback() {