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,
|
public void loadExtraInformationOfItem(final Context context,
|
||||||
final FeedItem item, FeedManager.TaskCallback callback) {
|
final FeedItem item, FeedManager.TaskCallback callback) {
|
||||||
if (AppConfig.DEBUG)
|
if (AppConfig.DEBUG) {
|
||||||
Log.d(TAG,
|
Log.d(TAG,
|
||||||
"Loading extra information of item with id " + item.getId());
|
"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) {
|
dbExec.execute(new FeedManager.Task(new Handler(), callback) {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -109,7 +109,7 @@ public class ItemDescriptionFragment extends SherlockFragment {
|
|||||||
public void onViewCreated(View view, Bundle savedInstanceState) {
|
public void onViewCreated(View view, Bundle savedInstanceState) {
|
||||||
super.onViewCreated(view, savedInstanceState);
|
super.onViewCreated(view, savedInstanceState);
|
||||||
if (item != null) {
|
if (item != null) {
|
||||||
if (item.getDescription() == null && item.getDescription() == null) {
|
if (item.getDescription() == null && item.getContentEncoded() == null) {
|
||||||
Log.i(TAG, "Loading data");
|
Log.i(TAG, "Loading data");
|
||||||
FeedManager.getInstance().loadExtraInformationOfItem(
|
FeedManager.getInstance().loadExtraInformationOfItem(
|
||||||
getActivity(), item, new FeedManager.TaskCallback() {
|
getActivity(), item, new FeedManager.TaskCallback() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user