Skip to content

Fix analytics toggle - #452

Merged
francip merged 1 commit into
BasedHardware:mainfrom
mdmohsin7:analytics-toggle
Jul 18, 2024
Merged

francip merged 1 commit into
BasedHardware:mainfrom
mdmohsin7:analytics-toggle

Conversation

@mdmohsin7

Copy link
Copy Markdown
Member

Fixes #443

@mdmohsin7
mdmohsin7 requested a review from josancamon19 July 17, 2024 18:16
setState(() {
optInAnalytics = false;
optInAnalytics = !SharedPreferencesUtil().optInAnalytics;
SharedPreferencesUtil().optInAnalytics = !SharedPreferencesUtil().optInAnalytics;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[nitpick] Could've used the value of the variable above. (Not that the compiler won't be smart enough and optimize this...)

@francip
francip merged commit f22fde8 into BasedHardware:main Jul 18, 2024
Glucksberg pushed a commit to Glucksberg/omi-local that referenced this pull request Apr 28, 2026
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.

Toggle for opt in analytics doesn't turn on after turning it off once

2 participants