Skip to content

Feature: Allow hiding private space#1621

Open
notrudyyy wants to merge 3 commits into
MM2-0:mainfrom
notrudyyy:hide-private-space
Open

Feature: Allow hiding private space#1621
notrudyyy wants to merge 3 commits into
MM2-0:mainfrom
notrudyyy:hide-private-space

Conversation

@notrudyyy

Copy link
Copy Markdown
Contributor

Allows hiding the private space via a settings toggle. A temporary solution until https://issuetracker.google.com/issues/352276244 is resolved.

Closes #1109

I have never worked with Kotlin or Android before so it is very likely that this is a messy way to do this. Would appreciate any feedback!

@notrudyyy

Copy link
Copy Markdown
Contributor Author

@MM2-0 Any feedback?

if (hidePrivateProfile.value) {
val score = ResultScore(
query = query,
primaryFields = listOf("Private Space")

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This has to be translatable

@MM2-0

MM2-0 commented Sep 19, 2025

Copy link
Copy Markdown
Owner

Looks good so far. Some things I've noticed:

  • If i unlock the private space, it doesn't automatically activate the private space tab, which could be a bit confusing
  • The launcher crashes when I lock the private space again, because the selected tab no longer exists
  • The "Personal" tab should be hidden if it's the only tab (if the private space is locked and you don't have a work profile).

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.

Support fully hiding "Private Space"

2 participants