if-statement was wrong
This commit is contained in:
parent
ef5dc7cb0e
commit
5090485a1e
|
@ -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
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue