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

Use inner function to reduce boilerplate in LookAndFeelActivity #417

Merged
merged 1 commit into from
Jun 5, 2023

Conversation

twizmwazin
Copy link
Contributor

This moves the updateAppSettings function to be an inner function of LookAndFeelActivity. Now we don't have to pass every state object for every single settings entry.

@twizmwazin twizmwazin requested a review from dessalines as a code owner June 5, 2023 05:10
Copy link
Member

@dessalines dessalines left a comment

Choose a reason for hiding this comment

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

Thanks!

Run ./gradlew formatKotlin to fix the formatting CI issues.

@dessalines dessalines enabled auto-merge (squash) June 5, 2023 16:11
auto-merge was automatically disabled June 5, 2023 19:41

Head branch was pushed to by a user without write access

@twizmwazin twizmwazin force-pushed the deduplicate-settings branch from d8ce3bd to ee6adda Compare June 5, 2023 19:41
@twizmwazin twizmwazin force-pushed the deduplicate-settings branch from ee6adda to d668558 Compare June 5, 2023 19:46
@dessalines dessalines merged commit 59371bc into LemmyNet:main Jun 5, 2023
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