fix crash when loading more headlines

This commit is contained in:
Andrew Dolgov 2013-05-23 22:19:59 +04:00
parent 8872cc12eb
commit e8d4f7024c
2 changed files with 8 additions and 7 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.fox.ttrss"
android:versionCode="172"
android:versionName="1.7.9" >
android:versionCode="173"
android:versionName="1.7.10" >
<uses-sdk
android:minSdkVersion="8"

View File

@ -679,11 +679,12 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
TextView author = (TextView)v.findViewById(R.id.author);
if (author != null && articleAuthor.length() > 0) {
author.setText(getString(R.string.author_formatted, articleAuthor));
} else {
author.setText("");
}
if (author != null)
if (articleAuthor.length() > 0) {
author.setText(getString(R.string.author_formatted, articleAuthor));
} else {
author.setText("");
}
/* ImageView separator = (ImageView)v.findViewById(R.id.headlines_separator);