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

Add infinite scroll option to homepage #4945

Open
wants to merge 1 commit into
base: 14-dev
Choose a base branch
from

Conversation

chavan-arvind
Copy link

Related to #4943

Add infinite scroll option to the homepage.

  • LawnchairLauncher.kt
    • Observe the infiniteScroll preference and update the launcher accordingly.
  • HomeScreenPreferences.kt
    • Add a switch to enable/disable infinite scroll in the layout preference group.
  • HomeScreenGridPreferences.kt
    • Add a switch to enable/disable infinite scroll in the layout preference group.

Related to LawnchairLauncher#4943

Add infinite scroll option to the homepage.

* **LawnchairLauncher.kt**
  - Observe the `infiniteScroll` preference and update the launcher accordingly.
* **HomeScreenPreferences.kt**
  - Add a switch to enable/disable infinite scroll in the layout preference group.
* **HomeScreenGridPreferences.kt**
  - Add a switch to enable/disable infinite scroll in the layout preference group.
Comment on lines +132 to +133
label = stringResource(id = R.string.infinite_scroll_label),
description = stringResource(id = R.string.infinite_scroll_description),
Copy link
Contributor

Choose a reason for hiding this comment

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

The string for infinite scroll appeared to be missing.

Comment on lines +84 to +86
adapter = prefs.infiniteScroll.getAdapter(),
label = stringResource(id = R.string.infinite_scroll_label),
description = stringResource(id = R.string.infinite_scroll_description),
Copy link
Contributor

Choose a reason for hiding this comment

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

The string for infinite scroll appeared to be missing

Comment on lines +199 to +203
// Observe the infiniteScroll preference and update the launcher accordingly
prefs.infiniteScroll.subscribeChanges(this) { infiniteScrollEnabled ->
// Add logic to handle infinite scroll based on the new preference
// For example, update the workspace or other relevant components
}
Copy link
Contributor

Choose a reason for hiding this comment

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

The code seems incomplete, at the moment(?)

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