-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
base: 14-dev
Are you sure you want to change the base?
Add infinite scroll option to homepage #4945
Conversation
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.
label = stringResource(id = R.string.infinite_scroll_label), | ||
description = stringResource(id = R.string.infinite_scroll_description), |
There was a problem hiding this comment.
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.
adapter = prefs.infiniteScroll.getAdapter(), | ||
label = stringResource(id = R.string.infinite_scroll_label), | ||
description = stringResource(id = R.string.infinite_scroll_description), |
There was a problem hiding this comment.
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
// 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 | ||
} |
There was a problem hiding this comment.
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(?)
Related to #4943
Add infinite scroll option to the homepage.
infiniteScroll
preference and update the launcher accordingly.