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

Wear app: show sessions #207

Merged
merged 7 commits into from
Mar 26, 2024
Merged

Wear app: show sessions #207

merged 7 commits into from
Mar 26, 2024

Conversation

BoD
Copy link
Collaborator

@BoD BoD commented Mar 24, 2024

Sorry for the big PR 😅

  • Sign in / sign out
  • Session list (per day in a pager)
  • Current day is automatically selected
  • Setting to filter on favorite sessions
am-wear-1.webm

Missing:

  • Session details
  • Automatically scroll to time of day
  • Gray out passed sessions
  • Pull (or button) to refresh

Nice to have:

  • Automatic refresh when bookmarking on phone
  • Bookmarking on watch

class LocalPreferencesRepository(applicationContext: Context) {
private val localPrefs = Prefs(applicationContext)

val showOnlyBookmarkedSessions: MutableStateFlow<Boolean> by localPrefs.BooleanFlow(false)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is is possible to use the data store ? Like in the BookmarksDatastoreRepository :

private val dataStore: DataStore<Preferences>

dataStore.data.map { prefs ->
        prefs[booleanPreferenceKey("MY_KEY")]
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Probably!

Used my own little lib kprefs because I know it 😅. I'll have a look at DataStore, but I'll merge this one now to iterate fast.

@BoD BoD merged commit e6a0abf into main Mar 26, 2024
1 check passed
@BoD BoD deleted the wear-app-session-list branch March 26, 2024 11:08
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.

3 participants