feed icon scaling fixes
This commit is contained in:
parent
02cd3703bc
commit
9e96e4434f
@ -10,6 +10,11 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:maxWidth="16dp"
|
||||
android:adjustViewBounds="true"
|
||||
android:maxHeight="16dp"
|
||||
android:minHeight="16dp"
|
||||
android:minWidth="16dp"
|
||||
android:src="@drawable/ic_rss_bw" />
|
||||
|
||||
<TextView
|
||||
|
@ -45,6 +45,7 @@ import android.widget.AdapterView;
|
||||
import android.widget.AdapterView.OnItemClickListener;
|
||||
import android.widget.ArrayAdapter;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.ImageView.ScaleType;
|
||||
import android.widget.ListView;
|
||||
import android.widget.TextView;
|
||||
|
||||
@ -375,9 +376,7 @@ public class FeedsFragment extends Fragment implements OnItemClickListener, OnSh
|
||||
if (iconFile.exists()) {
|
||||
Bitmap bmpOrig = BitmapFactory.decodeFile(iconFile.getAbsolutePath());
|
||||
if (bmpOrig != null) {
|
||||
Bitmap bmp = Bitmap.createScaledBitmap(bmpOrig, 28, 28, true);
|
||||
|
||||
icon.setImageBitmap(bmp);
|
||||
icon.setImageBitmap(bmpOrig);
|
||||
}
|
||||
} else {
|
||||
icon.setImageResource(feed.unread > 0 ? R.drawable.ic_rss : R.drawable.ic_rss_bw);
|
||||
|
@ -323,12 +323,6 @@ public class MainActivity extends FragmentActivity implements FeedsFragment.OnFe
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onCreateOptionsMenu(Menu menu) {
|
||||
MenuInflater inflater = getMenuInflater();
|
||||
|
Loading…
Reference in New Issue
Block a user