Review TODO comments and fix or remove them

Open
#7,217 10 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@AdityaDarke97 is already working on this.

Since Nov 3, 2026.

Assessment

Difficulty
3/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
android, kotlin
Domain
mobile

Research direction

Search app/src for TODO to get the list of 38 comments across 27 files, starting with the one in ImageFragment.kt about span count. Pick a single TODO, decide whether it is still relevant, and either fix it, delete it, or open a separate issue for it. Keep each change small and in its own pull request. Done means every TODO has been handled in one of those three ways, and the project still builds.

Written by the indexing model from the issue text.

Description

Suggested by @nicolas-raoul in #7210.

The codebase has TODO comments that have been around for a while, for example // todo change span count depending on the device orientation and other factos. in ImageFragment.kt. A quick search of app/src finds 38 across 27 files.

For each one, either fix it, remove it if it no longer applies, or open a separate issue if it needs more work.

Here's the list:

Auth, app, utils:

auth/login/LoginClient.kt
CommonsApplication.kt (2)
AboutActivity.kt (2)
Media.kt
utils/NetworkUtils.kt
utils/DateUtil.kt
utils/ConfigUtils.kt
review/ReviewController.kt
feedback/FeedbackDialog.kt

Contributions and profile:

contributions/ContributionsFragment.kt (2)
profile/achievements/AchievementsFragment.kt
profile/achievements/AchievementsStatsBinder.kt

Nearby:

nearby/fragments/NearbyParentFragment.kt (2)
nearby/presenter/NearbyBookmarkCacheHandler.kt
nearby/presenter/NearbyFilterHandler.kt
nearby/model/ResultTuple.kt

Custom selector:

customselector/ui/selector/ImageFragment.kt
customselector/ui/selector/FolderFragment.kt
customselector/ui/selector/ImageFileLoader.kt (2)

Wikidata:

wikidata/model/page/PageTitle.kt (4)
wikidata/model/WikiSite.kt
wikidata/json/WikiSiteTypeAdapter.kt (2)
wikidata/json/NamespaceTypeAdapter.kt
wikidata/json/RequiredFieldsCheckOnReadTypeAdapterFactory.kt
wikidata/mwapi/MwQueryPage.kt
wikidata/mwapi/MwQueryResult.kt

Resources and tests:
res/values/arrays.xml
res/layout/fragment_achievements.xml
resources/queries/query_for_item.rq
test/.../explore/ExploreFragmentUnitTest.kt

Stale ones:
WikiSiteTypeAdapter (2): “remove reader June 2018”.
NamespaceTypeAdapter: “remove after April 2017”.
DateUtil: “when minSdk = 26” (check the current minSdk first).
The bare // TODO lines in NearbyBookmarkCacheHandler, NearbyFilterHandler, NearbyParentFragment:2120, and the // TODO: after @SuppressLint in AboutActivity (2).
ImageFileLoader:203 (a bare TODO in a KDoc).

Small fixes:
ConfigUtils (a Dagger provider).
fragment_achievements.xml (contentDescription).
FolderFragment and ImageFragment (span count by orientation).
AchievementsFragment (extract a method).

Need more work:
The Nearby and Contributions UX items.
LoginClient (2FA warning).
FeedbackDialog (already references #6002).
NetworkUtils (Android 12+ permission).
ExploreFragmentUnitTest (@Ignored test).
The PageTitle refactor.

Dominant language
Kotlin
Stars
1.2k
Forks
1.4k
Avg merge
1d 4h
Merged PRs (30d)
156

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from commons-app/apps-android-commons

All issues in commons-app/apps-android-commons

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.