Added fixes for encoding issue, null rounding image issue

This commit is contained in:
RyanBateman 2012-11-28 11:24:20 +00:00
parent ad70f9da89
commit 855b8d0220
4 changed files with 14 additions and 4 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="com.newsblur"
android:versionCode="27"
android:versionName="1.0.4" >
android:versionCode="29"
android:versionName="1.0.55" >
<uses-sdk
android:minSdkVersion="8"

View file

@ -313,8 +313,10 @@ public class ReadingItemFragment extends Fragment implements ClassifierDialogFra
commentText.setTag("commentBy" + user.id);
commentText.setText(sharedText);
ImageView commentImage = (ImageView) commentView.findViewById(R.id.comment_user_image);
commentImage.setImageBitmap(UIUtils.roundCorners(PrefsUtils.getUserImage(getActivity()), 10f));
if (PrefsUtils.getUserImage(getActivity()) != null) {
ImageView commentImage = (ImageView) commentView.findViewById(R.id.comment_user_image);
commentImage.setImageBitmap(UIUtils.roundCorners(PrefsUtils.getUserImage(getActivity()), 10f));
}
TextView commentSharedDate = (TextView) commentView.findViewById(R.id.comment_shareddate);
commentSharedDate.setText(R.string.now);

View file

@ -72,6 +72,9 @@ public class FeedItemViewBinder implements ViewBinder {
} catch (UnsupportedEncodingException e) {
((TextView) view).setText(Html.fromHtml(cursor.getString(columnIndex)));
Log.e(TAG, "Error decoding from title string");
} catch (IllegalArgumentException e) {
((TextView) view).setText(Html.fromHtml(cursor.getString(columnIndex)));
Log.d(TAG, "Title contained an unescaped character");
}
return true;
}

View file

@ -0,0 +1,5 @@
package com.newsblur.test.domain;
public class StoryTest {
}