Updates for the start of Material.

This commit is contained in:
Dan Galpin
2015-05-25 01:11:09 -07:00
parent 09bf41133c
commit fd3b39883f
2 changed files with 3 additions and 2 deletions

View File

@@ -9,6 +9,8 @@ Android SDK 21 or Higher
Build Tools version 21.1.2 Build Tools version 21.1.2
Android Support AppCompat 22.2.0 Android Support AppCompat 22.2.0
Android Support Annotations 22.2.0 Android Support Annotations 22.2.0
Google Play Services GCM 7.0.0
BumpTech Glide 3.5.2
Getting Started Getting Started
--------------- ---------------

View File

@@ -90,10 +90,9 @@ public class ForecastAdapter extends CursorAdapter {
public void bindView(View view, Context context, Cursor cursor) { public void bindView(View view, Context context, Cursor cursor) {
ViewHolder viewHolder = (ViewHolder) view.getTag(); ViewHolder viewHolder = (ViewHolder) view.getTag();
int viewType = getItemViewType(cursor.getPosition());
int weatherId = cursor.getInt(ForecastFragment.COL_WEATHER_CONDITION_ID); int weatherId = cursor.getInt(ForecastFragment.COL_WEATHER_CONDITION_ID);
int fallbackIconId; int fallbackIconId;
int viewType = getItemViewType(cursor.getPosition());
switch (viewType) { switch (viewType) {
case VIEW_TYPE_TODAY: { case VIEW_TYPE_TODAY: {
// Get weather icon // Get weather icon