diff --git a/WordPress/src/main/java/org/wordpress/android/ui/posts/adapters/PostsListAdapter.java b/WordPress/src/main/java/org/wordpress/android/ui/posts/adapters/PostsListAdapter.java index 0183c37e1bc6..3a567667e3f5 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/posts/adapters/PostsListAdapter.java +++ b/WordPress/src/main/java/org/wordpress/android/ui/posts/adapters/PostsListAdapter.java @@ -543,7 +543,7 @@ private void configurePostButtons(final PostViewHolder holder, // edit / view are always visible holder.btnEdit.setVisibility(View.VISIBLE); - holder.btnPublish.setVisibility(View.VISIBLE); + holder.btnView.setVisibility(View.VISIBLE); // if we have enough room to show all buttons, hide the back/more buttons and show stats/trash/publish if (mAlwaysShowAllButtons || numVisibleButtons <= 3) { @@ -561,7 +561,7 @@ private void configurePostButtons(final PostViewHolder holder, holder.btnBack.setVisibility(View.GONE); holder.btnTrash.setVisibility(View.GONE); holder.btnStats.setVisibility(View.GONE); - holder.btnView.setVisibility(View.GONE); + holder.btnPublish.setVisibility(View.GONE); } View.OnClickListener btnClickListener = new View.OnClickListener() { @@ -615,11 +615,11 @@ public void onAnimationEnd(Animator animation) { // row 1 holder.btnEdit.setVisibility(showRow1 ? View.VISIBLE : View.GONE); - holder.btnPublish.setVisibility(showRow1 && canPublishPost(post) ? View.VISIBLE : View.GONE); + holder.btnView.setVisibility(showRow1 ? View.VISIBLE : View.GONE); holder.btnMore.setVisibility(showRow1 ? View.VISIBLE : View.GONE); // row 2 - holder.btnView.setVisibility(!showRow1 ? View.VISIBLE : View.GONE); holder.btnStats.setVisibility(!showRow1 && canShowStatsForPost(post) ? View.VISIBLE : View.GONE); + holder.btnPublish.setVisibility(!showRow1 && canPublishPost(post) ? View.VISIBLE : View.GONE); holder.btnTrash.setVisibility(!showRow1 ? View.VISIBLE : View.GONE); holder.btnBack.setVisibility(!showRow1 ? View.VISIBLE : View.GONE); diff --git a/WordPress/src/main/res/layout/post_cardview.xml b/WordPress/src/main/res/layout/post_cardview.xml index 6e9aa4d3eca8..7d71a4062bdf 100644 --- a/WordPress/src/main/res/layout/post_cardview.xml +++ b/WordPress/src/main/res/layout/post_cardview.xml @@ -116,20 +116,20 @@ wp:wpPostButtonType="edit" /> + wp:wpPostButtonType="view" /> + wp:wpPostButtonType="publish" />