diff --git a/app/build.gradle b/app/build.gradle index 4e3f9f7..3ed422e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId "shts.jp.android.nogifeed" minSdkVersion 10 targetSdkVersion 21 - versionCode 13 - versionName "1.2.2" + versionCode 14 + versionName "1.2.3" } buildTypes { debug { diff --git a/app/src/main/java/shts/jp/android/nogifeed/adapters/FavoriteFeedListAdapter.java b/app/src/main/java/shts/jp/android/nogifeed/adapters/FavoriteFeedListAdapter.java index 62bde98..ce35792 100644 --- a/app/src/main/java/shts/jp/android/nogifeed/adapters/FavoriteFeedListAdapter.java +++ b/app/src/main/java/shts/jp/android/nogifeed/adapters/FavoriteFeedListAdapter.java @@ -8,11 +8,13 @@ import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; +import android.widget.LinearLayout; import android.widget.TextView; import java.util.List; import shts.jp.android.nogifeed.R; +import shts.jp.android.nogifeed.activities.BlogActivity; import shts.jp.android.nogifeed.common.Logger; import shts.jp.android.nogifeed.entities.Entry; import shts.jp.android.nogifeed.utils.DateUtils; @@ -35,6 +37,7 @@ public FavoriteFeedListAdapter(Context context, List list) { class ViewHolder extends RecyclerView.ViewHolder { + LinearLayout labelView; ImageView backgroudImageView; ImageView profileImageView; TextView titleTextView; @@ -43,6 +46,7 @@ class ViewHolder extends RecyclerView.ViewHolder { public ViewHolder(View view) { super(view); + labelView = (LinearLayout) view.findViewById(R.id.card_rebel); titleTextView = (TextView) view.findViewById(R.id.card_title); autherTextView = (TextView) view.findViewById(R.id.authorname); backgroudImageView = (ImageView) view.findViewById(R.id.card_background); @@ -66,7 +70,7 @@ public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, Object object) holder.backgroudImageView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { - //IntentUtils.startBlogActivity(mContext, entry); + mContext.startActivity(BlogActivity.getStartIntent(mContext, entry.toBlogEntry())); TrackerUtils.sendTrack(mContext, TAG, "OnClicked", "-> Blog : " + "entry(" + entry.toString() + ")"); }