Skip to content

Commit fd3b398

Browse files
committed
Updates for the start of Material.
1 parent 09bf411 commit fd3b398

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Android SDK 21 or Higher
99
Build Tools version 21.1.2
1010
Android Support AppCompat 22.2.0
1111
Android Support Annotations 22.2.0
12+
Google Play Services GCM 7.0.0
13+
BumpTech Glide 3.5.2
1214

1315
Getting Started
1416
---------------

app/src/main/java/com/example/android/sunshine/app/ForecastAdapter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,9 @@ public View newView(Context context, Cursor cursor, ViewGroup parent) {
9090
public void bindView(View view, Context context, Cursor cursor) {
9191

9292
ViewHolder viewHolder = (ViewHolder) view.getTag();
93-
94-
int viewType = getItemViewType(cursor.getPosition());
9593
int weatherId = cursor.getInt(ForecastFragment.COL_WEATHER_CONDITION_ID);
9694
int fallbackIconId;
95+
int viewType = getItemViewType(cursor.getPosition());
9796
switch (viewType) {
9897
case VIEW_TYPE_TODAY: {
9998
// Get weather icon

0 commit comments

Comments
 (0)