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

AccountSettingsActivity: make canAccessWifiSsid live-capable #732

Merged

Conversation

ArnyminerZ
Copy link
Member

  • Added canAccessWifiSsidLive and replaced usage in AccountSettingsActivity.

@ArnyminerZ ArnyminerZ linked an issue Apr 16, 2024 that may be closed by this pull request
@ArnyminerZ ArnyminerZ self-assigned this Apr 16, 2024
@ArnyminerZ ArnyminerZ marked this pull request as ready for review April 16, 2024 09:57
@ArnyminerZ ArnyminerZ requested review from rfc2822 and removed request for rfc2822 April 16, 2024 09:57
@ArnyminerZ ArnyminerZ marked this pull request as draft April 16, 2024 09:58
@ArnyminerZ ArnyminerZ marked this pull request as ready for review April 16, 2024 10:04
@ArnyminerZ ArnyminerZ requested a review from rfc2822 April 16, 2024 10:04
@rfc2822 rfc2822 force-pushed the 728-accountsettingsactivity-make-canaccesswifissid-live-capable branch from fdeaa7d to 9989106 Compare April 19, 2024 08:06
Copy link
Member

@rfc2822 rfc2822 left a comment

Choose a reason for hiding this comment

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

Some thoughts :)

@ArnyminerZ ArnyminerZ requested review from rfc2822 and removed request for rfc2822 April 29, 2024 16:34
@rfc2822 rfc2822 force-pushed the main-ose branch 17 times, most recently from 47ef18b to 39f8f2e Compare May 2, 2024 12:03
ArnyminerZ and others added 11 commits May 10, 2024 11:36
Signed-off-by: Arnau Mora Gras <arnyminerz@proton.me>
Signed-off-by: Arnau Mora Gras <arnyminerz@proton.me>
Signed-off-by: Arnau Mora Gras <arnyminerz@proton.me>
Signed-off-by: Arnau Mora Gras <arnyminerz@proton.me>
Signed-off-by: Arnau Mora <arnyminerz@proton.me>
Signed-off-by: Arnau Mora <arnyminerz@proton.me>
Signed-off-by: Arnau Mora <arnyminerz@proton.me>
Signed-off-by: Arnau Mora <arnyminerz@proton.me>
Signed-off-by: Arnau Mora <arnyminerz@proton.me>
Signed-off-by: Arnau Mora <arnyminerz@proton.me>
Signed-off-by: Arnau Mora Gras <arnyminerz@proton.me>
@rfc2822 rfc2822 force-pushed the 728-accountsettingsactivity-make-canaccesswifissid-live-capable branch from e7ec996 to 65f2665 Compare May 10, 2024 09:36
Copy link
Member

@rfc2822 rfc2822 left a comment

Choose a reason for hiding this comment

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

I have changed a few things:

  • use map & collect for the flow instead of just defining a MutableLiveFlow (you don't emit outside a flow normally and it mixes hot/cold flows without explicitly making them hot)
  • only one if for Android 9
  • combine state with derivedStateOf (see Talk)

@rfc2822 rfc2822 merged commit a246046 into main-ose May 11, 2024
6 checks passed
@rfc2822 rfc2822 deleted the 728-accountsettingsactivity-make-canaccesswifissid-live-capable branch May 11, 2024 12:49
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.

AccountSettingsActivity: make canAccessWifiSsid live-capable
2 participants