Skip to content

Conversation

@Friendly-Banana
Copy link

@Friendly-Banana Friendly-Banana commented Oct 16, 2025

Type of change(s)

  • Bug fix
  • Feature / enhancement
  • Infrastructure / tooling (CI, build, deps, tests)
  • Documentation

What changed and why

  • added autocomplete for location

Tests performed

  • create events with locations
  • check suggestions appear

Before & after preview

ignoreImageMinify ignoreImageMinify

Closes the following issue(s)

Checklist

  • I read the contribution guidelines.
  • I manually tested my changes on device/emulator (if applicable).
  • I updated the "Unreleased" section in CHANGELOG.md (if applicable).
  • I have self-reviewed my pull request (no typos, formatting errors, etc.).
  • All checks are passing.

I had to make item_dropdown.xml because in light mode the suggestions were gray on white and unreadable.

@naveensingh
Copy link
Member

@Friendly-Banana, could you resolve the conflicts here and in #817?

@Friendly-Banana
Copy link
Author

looking into it

@Friendly-Banana
Copy link
Author

rebased and tested

@Query("SELECT * FROM events WHERE type = $TYPE_TASK")
fun getAllTasks(): List<Event>

@Query("SELECT DISTINCT location FROM events")
Copy link
Member

Choose a reason for hiding this comment

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

Maybe sort them first?

Suggested change
@Query("SELECT DISTINCT location FROM events")
@Query("SELECT DISTINCT location FROM events ORDER BY location COLLATE NOCASE")

android:textSize="@dimen/day_text_size" />

<org.fossify.commons.views.MyEditText
<AutoCompleteTextView
Copy link
Member

Choose a reason for hiding this comment

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

We should use the Fossify implementation so proper colors are used in all themes.

Suggested change
<AutoCompleteTextView
<org.fossify.commons.views.MyAutoCompleteTextView

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.

Suggest locations

2 participants