Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove some unused code #4776

Merged
merged 2 commits into from
Nov 28, 2024
Merged

remove some unused code #4776

merged 2 commits into from
Nov 28, 2024

Conversation

connyduck
Copy link
Collaborator

No description provided.

Comment on lines -857 to -863

menu.findItem(R.id.action_search)?.apply {
icon = IconicsDrawable(this@AccountActivity, GoogleMaterial.Icon.gmd_search).apply {
sizeDp = 20
colorInt = MaterialColors.getColor(binding.collapsingToolbar, android.R.attr.textColorPrimary)
}
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no action_search in this menu (or the one in AnnouncementsActivity). Probably here because the code was copied from MainActivity.

suspend fun listAnnouncements(
@Query("with_dismissed") withDismissed: Boolean = true
): NetworkResult<List<Announcement>>
suspend fun announcements(): NetworkResult<List<Announcement>>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This parameter does not exist mastodon/mastodon#27310 (comment)

@connyduck connyduck merged commit fc52074 into develop Nov 28, 2024
1 check passed
@connyduck connyduck deleted the remove-unused-announcements-code branch November 28, 2024 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants