diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeFragment.java index 0e2280d23..a5e87d9e1 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeFragment.java @@ -124,23 +124,6 @@ public class HomeFragment extends AppKitFragment implements OnBackPressedListene Account self=AccountSessionManager.getInstance().getAccount(accountID).self; ViewImageLoader.load(tabBarAvatar, null, new UrlImageLoaderRequest(self.avatar, V.dp(28), V.dp(28))); - notificationTabIcon=content.findViewById(R.id.tab_notifications); - - AccountSessionManager.getInstance() - .getAccount(accountID).getCacheController() - .getNotifications(null, 1, false, false, true, new Callback<>() { - @Override - public void onSuccess(PaginatedResponse> result) { - notificationBadged = result.items.get(0).createdAt.isAfter(Instant.ofEpochMilli(GlobalUserPreferences.lastNotificationOpenedTime)); - setNotificationBadge(); - } - - @Override - public void onError(ErrorResponse error) { - error.showToast(getContext()); - } - }); - if(savedInstanceState==null){ getChildFragmentManager().beginTransaction() .add(R.id.fragment_wrap, homeTabFragment) @@ -368,8 +351,4 @@ public class HomeFragment extends AppKitFragment implements OnBackPressedListene // getChildFragmentManager().putFragment(outState, "notificationsFragment", notificationsFragment); // getChildFragmentManager().putFragment(outState, "profileFragment", profileFragment); } - - private void setNotificationBadge() { - notificationTabIcon.setImageDrawable(getContext().getDrawable(notificationBadged ? R.drawable.ic_notifications_tab_badged : R.drawable.ic_fluent_alert_28_selector)); - } } diff --git a/mastodon/src/main/res/drawable/ic_notifications_tab_badged.xml b/mastodon/src/main/res/drawable/ic_notifications_tab_badged.xml deleted file mode 100644 index c5608a960..000000000 --- a/mastodon/src/main/res/drawable/ic_notifications_tab_badged.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file