Skip to content

Commit

Permalink
Fix product hunt. Ooops.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbutcher committed Aug 2, 2016
1 parent 07d53c3 commit 64d6cfb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/io/plaidapp/data/DataManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,9 @@ private void loadProductHunt(final int page) {
public void onResponse(Call<PostsResponse> call, Response<PostsResponse> response) {
if (response.isSuccessful()) {
final List<Post> posts = response.body() != null ? response.body().posts : null;
sourceLoaded(posts, page, SourceManager.SOURCE_DRIBBBLE_USER_SHOTS);
sourceLoaded(posts, page, SourceManager.SOURCE_PRODUCT_HUNT);
} else {
loadFailed(SourceManager.SOURCE_DRIBBBLE_USER_SHOTS);
loadFailed(SourceManager.SOURCE_PRODUCT_HUNT);
}
}

Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/layout/product_hunt_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

<io.plaidapp.ui.widget.FourThreeLinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/product_hunt"
Expand All @@ -35,6 +36,7 @@
android:paddingBottom="@dimen/spacing_micro"
android:ellipsize="end"
android:breakStrategy="simple"
app:maxLinesByHeight="true"
style="@style/Widget.Plaid.TilePrimary" />

<io.plaidapp.ui.widget.BaselineGridTextView
Expand All @@ -47,6 +49,7 @@
android:paddingBottom="@dimen/spacing_micro"
android:ellipsize="end"
android:breakStrategy="simple"
app:maxLinesByHeight="true"
style="@style/Widget.Plaid.TileSecondary" />

<io.plaidapp.ui.widget.BaselineGridTextView
Expand Down

0 comments on commit 64d6cfb

Please sign in to comment.