From 0f996f88ba5ae7d503c963e5e6a4129b454f454a Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Mon, 22 Mar 2021 15:33:43 -0400 Subject: [PATCH] remove avatar from hashtag avatars don't exist on app api, and there's no pattern... so bye bye --- .../instagrabber/fragments/HashTagFragment.java | 6 +++--- .../repositories/responses/Hashtag.java | 7 ------- app/src/main/res/drawable/ic_hashtag.png | Bin 0 -> 5581 bytes 3 files changed, 3 insertions(+), 10 deletions(-) create mode 100644 app/src/main/res/drawable/ic_hashtag.png diff --git a/app/src/main/java/awais/instagrabber/fragments/HashTagFragment.java b/app/src/main/java/awais/instagrabber/fragments/HashTagFragment.java index 75e72949..9b684c68 100644 --- a/app/src/main/java/awais/instagrabber/fragments/HashTagFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/HashTagFragment.java @@ -474,7 +474,7 @@ public class HashTagFragment extends Fragment implements SwipeRefreshLayout.OnRe hashtag, FavoriteType.HASHTAG, hashtagModel.getName(), - hashtagModel.getProfilePicUrl(), + "res:/" + R.drawable.ic_hashtag, result.getDateAdded() ), new RepositoryCallback() { @Override @@ -518,7 +518,7 @@ public class HashTagFragment extends Fragment implements SwipeRefreshLayout.OnRe hashtag, FavoriteType.HASHTAG, hashtagModel.getName(), - hashtagModel.getProfilePicUrl(), + "res:/" + R.drawable.ic_hashtag, new Date() ), new RepositoryCallback() { @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 SpannableStringBuilder span = new SpannableStringBuilder(getResources().getQuantityString(R.plurals.main_posts_count_inline, hashtagModel.getMediaCount() > 2000000000L diff --git a/app/src/main/java/awais/instagrabber/repositories/responses/Hashtag.java b/app/src/main/java/awais/instagrabber/repositories/responses/Hashtag.java index aca5daad..17bc3c63 100755 --- a/app/src/main/java/awais/instagrabber/repositories/responses/Hashtag.java +++ b/app/src/main/java/awais/instagrabber/repositories/responses/Hashtag.java @@ -9,16 +9,13 @@ public final class Hashtag implements Serializable { private final long mediaCount; private final String id; private final String name; - private final String profilePicUrl; // on app API this is always null (property exists) public Hashtag(final String id, final String name, - final String profilePicUrl, final long mediaCount, final FollowingType following) { this.id = id; this.name = name; - this.profilePicUrl = profilePicUrl; this.mediaCount = mediaCount; this.following = following; } @@ -31,10 +28,6 @@ public final class Hashtag implements Serializable { return name; } - public String getProfilePicUrl() { - return profilePicUrl; - } - public Long getMediaCount() { return mediaCount; } diff --git a/app/src/main/res/drawable/ic_hashtag.png b/app/src/main/res/drawable/ic_hashtag.png new file mode 100644 index 0000000000000000000000000000000000000000..ce135fc079765faebf645e16ded7f974b8f89a8d GIT binary patch literal 5581 zcmV;;6*B6HP)Px~hepAwRVk?^XNX+-KWYvNliVb>eM;E@3(*FcYf!0PNke=r|K0eR@B^d(@kTqy6URBOD?%& za#dB;h;%w#qiv+NQQB%#snjUMaPi{B&Yqs0GYvPhu$r)ulMRF(48SehB&$w zx^bTf5W1Z|e;%@US#i(dbLY@r7M!QBrV zHmqRa^Q{&{IeYf3^W%>{x|=kHt4VbI+z&te(7b>D{#6YP4SSVuPriAV>;5t9k@=fUh2cO9n_0$Aqy8Db!PO zNur)hyNuD_&z?Q|J==(36CtX0?AS5)nrp6EDI!e3E*Lp-q-z(%kpz8}8GGZzi4(5P zA!2kKJ9g|3GiT1+toyAnLTw;K>aDlls+X_eb%=mnP*YRm+6H|IH3`?THM+XGTzdmz z$j9;9dGqG&R^7^KW0aK;FTC)=)sH;#$luj7XrO73c5vt={E`yA6ln>!DbaE38*jYv zUy{qIa><}vgs5t3Yg=4fTl+Wl7^+8&8s!>`o4E?YL*E=#oR>%z5A;W$iiR@oR*AS~$ubwz<+O+rNT$+eh z7(RS>WQG4FWOU}t8CP4#sdZr2u3h&mUcC4~G3#AaLd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