mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-16 19:57:31 +00:00
remove avatar from hashtag
avatars don't exist on app api, and there's no pattern... so bye bye
This commit is contained in:
parent
1dd78b7d91
commit
0f996f88ba
@ -474,7 +474,7 @@ public class HashTagFragment extends Fragment implements SwipeRefreshLayout.OnRe
|
|||||||
hashtag,
|
hashtag,
|
||||||
FavoriteType.HASHTAG,
|
FavoriteType.HASHTAG,
|
||||||
hashtagModel.getName(),
|
hashtagModel.getName(),
|
||||||
hashtagModel.getProfilePicUrl(),
|
"res:/" + R.drawable.ic_hashtag,
|
||||||
result.getDateAdded()
|
result.getDateAdded()
|
||||||
), new RepositoryCallback<Void>() {
|
), new RepositoryCallback<Void>() {
|
||||||
@Override
|
@Override
|
||||||
@ -518,7 +518,7 @@ public class HashTagFragment extends Fragment implements SwipeRefreshLayout.OnRe
|
|||||||
hashtag,
|
hashtag,
|
||||||
FavoriteType.HASHTAG,
|
FavoriteType.HASHTAG,
|
||||||
hashtagModel.getName(),
|
hashtagModel.getName(),
|
||||||
hashtagModel.getProfilePicUrl(),
|
"res:/" + R.drawable.ic_hashtag,
|
||||||
new Date()
|
new Date()
|
||||||
), new RepositoryCallback<Void>() {
|
), new RepositoryCallback<Void>() {
|
||||||
@Override
|
@Override
|
||||||
@ -533,7 +533,7 @@ public class HashTagFragment extends Fragment implements SwipeRefreshLayout.OnRe
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
hashtagDetailsBinding.mainHashtagImage.setImageURI(hashtagModel.getProfilePicUrl());
|
hashtagDetailsBinding.mainHashtagImage.setImageURI("res:/" + R.drawable.ic_hashtag);
|
||||||
final String postCount = String.valueOf(hashtagModel.getMediaCount());
|
final String postCount = String.valueOf(hashtagModel.getMediaCount());
|
||||||
final SpannableStringBuilder span = new SpannableStringBuilder(getResources().getQuantityString(R.plurals.main_posts_count_inline,
|
final SpannableStringBuilder span = new SpannableStringBuilder(getResources().getQuantityString(R.plurals.main_posts_count_inline,
|
||||||
hashtagModel.getMediaCount() > 2000000000L
|
hashtagModel.getMediaCount() > 2000000000L
|
||||||
|
@ -9,16 +9,13 @@ public final class Hashtag implements Serializable {
|
|||||||
private final long mediaCount;
|
private final long mediaCount;
|
||||||
private final String id;
|
private final String id;
|
||||||
private final String name;
|
private final String name;
|
||||||
private final String profilePicUrl; // on app API this is always null (property exists)
|
|
||||||
|
|
||||||
public Hashtag(final String id,
|
public Hashtag(final String id,
|
||||||
final String name,
|
final String name,
|
||||||
final String profilePicUrl,
|
|
||||||
final long mediaCount,
|
final long mediaCount,
|
||||||
final FollowingType following) {
|
final FollowingType following) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.profilePicUrl = profilePicUrl;
|
|
||||||
this.mediaCount = mediaCount;
|
this.mediaCount = mediaCount;
|
||||||
this.following = following;
|
this.following = following;
|
||||||
}
|
}
|
||||||
@ -31,10 +28,6 @@ public final class Hashtag implements Serializable {
|
|||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getProfilePicUrl() {
|
|
||||||
return profilePicUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getMediaCount() {
|
public Long getMediaCount() {
|
||||||
return mediaCount;
|
return mediaCount;
|
||||||
}
|
}
|
||||||
|
BIN
app/src/main/res/drawable/ic_hashtag.png
Normal file
BIN
app/src/main/res/drawable/ic_hashtag.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.5 KiB |
Loading…
Reference in New Issue
Block a user