code cleanup

This commit is contained in:
David Development 2015-07-19 14:27:59 +02:00
parent 458f082ae4
commit fb2600c53a

View file

@ -47,7 +47,6 @@ public class NewsListRecyclerAdapter extends RecyclerView.Adapter<ViewHolder> {
private LazyList<RssItem> lazyList;
private int titleLineCount;
private DatabaseConnectionOrm dbConn;
private final int LengthBody = 400;
private ForegroundColorSpan bodyForegroundColor;
private PostDelayHandler pDelayHandler;
private FragmentActivity activity;
@ -149,14 +148,6 @@ public class NewsListRecyclerAdapter extends RecyclerView.Adapter<ViewHolder> {
}
}
public static int DpToPx(Context context, int dp) {
Resources r = context.getResources();
return (int) TypedValue.applyDimension(
TypedValue.COMPLEX_UNIT_DIP,
dp,
r.getDisplayMetrics());
}
public void setDownloadPodcastProgressbar(View view, RssItem rssItem) {
HoloCircularProgressBar pbPodcastDownloadProgress = (HoloCircularProgressBar) view.findViewById(R.id.podcastDownloadProgress);