mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Added fixes for encoding issue, null rounding image issue
This commit is contained in:
parent
ad70f9da89
commit
855b8d0220
4 changed files with 14 additions and 4 deletions
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
package com.newsblur.test.domain;
|
||||
|
||||
public class StoryTest {
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue