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

android: implement fast user switching #209

Merged
merged 1 commit into from
Mar 19, 2024
Merged

Conversation

barnstar
Copy link
Member

@barnstar barnstar commented Mar 15, 2024

Updates tailscale/corp#18202
Updates ENG-2875
Fixes ENG-2863

Adds everything we need to do fast user switching and support multiple accounts.

Some work here to make the settings rows and a few other composables common and reusable.

Added quick but incomplete support for requesting VPN permissions in the new activity.

Correct the focus and clear behaviour on the search bar and corrected the connected in state of SelfNode.

@@ -13,9 +13,12 @@ val ts_color_light_tintedBackground = Color(0xFFF7F5F4)
val ts_color_light_blue = Color(0xFF4B70CC)
val ts_color_light_green = Color(0xFF1EA672)

var ts_color_dark_desctrutive_text = Color(0xFFFF0000)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
var ts_color_dark_desctrutive_text = Color(0xFFFF0000)
var ts_color_dark_destructive_text = Color(0xFFFF0000)

@@ -13,9 +13,12 @@ val ts_color_light_tintedBackground = Color(0xFFF7F5F4)
val ts_color_light_blue = Color(0xFF4B70CC)
val ts_color_light_green = Color(0xFF1EA672)

var ts_color_dark_desctrutive_text = Color(0xFFFF0000)
var ts_color_light_desctrutive_text = Color(0xFFBB0000)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
var ts_color_light_desctrutive_text = Color(0xFFBB0000)
var ts_color_light_destructive_text = Color(0xFFBB0000)

)
}
}
}
}
}

@Composable
fun ClearButton(onClick: () -> Unit) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Move these to a Buttons.kt file?

@barnstar barnstar force-pushed the jonathan/fast_user_switching branch 3 times, most recently from ccfe701 to 3edf3fd Compare March 18, 2024 20:27
@barnstar barnstar requested a review from agottardo March 18, 2024 20:51
Updates tailscale/corp#18202
Updates ENG-2875
Fixes ENG-2863

Adds everything we need to do fast user switching and support multiple accounts.

Some work here to make the settings rows and a few other composables common and reusable.

Correct the focus and clear behavior on the search bar and corrected the connected in state of SelfNode.

Quick fix for requesting VPN permissions on newer Android phones.

Signed-off-by: Jonathan Nobels <[email protected]>
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