* ci: Allocate 8gb to CI
* Update ci.yml
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
* Update ci.yml
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
* ci: now test with cache disable
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
* ci: Now testing with cache again
Enable Gradle caching by removing cache-disabled flag.
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
* ci: Test build matrix
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
* ci: Make CI handle multiple jobs artefact output
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
* ci: Remove settings memory to 4gb since we use matrix
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
---------
Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
* Fix work profile unpause authentication prompt
Skip credential challenge when enabling/disabling work profile by passing null Intent parameter to requestQuietModeEnabled(). This prevents password/biometric prompts for secure folders when toggling work profile state.
- Use 3-parameter requestQuietModeEnabled() with null Intent on Android P+
- Fallback to 2-parameter version for older Android versions
- Resolves authentication prompt issue when unpausing work profile
* Fix work profile pause/unpause without authentication prompts
* Fix work profile state detection on initial load
Fixed bug where work profile quiet mode flag was not set correctly on initial app load when multiple user profiles exist. Changed direct assignment (=) to OR assignment (|=) to preserve quiet state across all work profiles.
This ensures FLAG_WORK_PROFILE_QUIET_MODE_ENABLED is set properly both on initial load (LoaderTask) and during runtime pause/unpause events (PackageUpdatedTask).
* Add work profile tab customization features
- Add workProfileTabBackgroundColor preference for selected tab color
- Add workProfileTabContainerBackground toggle for scroll protection
- Update DrawableTokens to use custom colors from preferences
- Add UI controls in App Drawer preferences
- Control tab background visibility on scroll
Features:
1. Custom color picker for selected work/personal tab button
2. Toggle to show/hide background protection when scrolling
* Fix work profile state detection bug
- Query UserManager.isQuietModeEnabled() directly for real-time state
- Call updateUserQuietMode() to keep cached state synchronized
- Fixes stale quiet mode state causing incorrect UI display
Root cause: LoaderTask was using cached UserManagerState values that
could become stale if work profile state changed between initialization
and app loading.
* Fix work profile unpause authentication prompt
Skip credential challenge when enabling/disabling work profile by passing null Intent parameter to requestQuietModeEnabled(). This prevents password/biometric prompts for secure folders when toggling work profile state.
- Use 3-parameter requestQuietModeEnabled() with null Intent on Android P+
- Fallback to 2-parameter version for older Android versions
- Resolves authentication prompt issue when unpausing work profile
* Fix work profile pause/unpause without authentication prompts
* Fix work profile state detection on initial load
Fixed bug where work profile quiet mode flag was not set correctly on initial app load when multiple user profiles exist. Changed direct assignment (=) to OR assignment (|=) to preserve quiet state across all work profiles.
This ensures FLAG_WORK_PROFILE_QUIET_MODE_ENABLED is set properly both on initial load (LoaderTask) and during runtime pause/unpause events (PackageUpdatedTask).
* Add work profile tab customization features
- Add workProfileTabBackgroundColor preference for selected tab color
- Add workProfileTabContainerBackground toggle for scroll protection
- Update DrawableTokens to use custom colors from preferences
- Add UI controls in App Drawer preferences
- Control tab background visibility on scroll
Features:
1. Custom color picker for selected work/personal tab button
2. Toggle to show/hide background protection when scrolling
* Fix work profile state detection bug
- Query UserManager.isQuietModeEnabled() directly for real-time state
- Call updateUserQuietMode() to keep cached state synchronized
- Fixes stale quiet mode state causing incorrect UI display
Root cause: LoaderTask was using cached UserManagerState values that
could become stale if work profile state changed between initialization
and app loading.
* Fix spotless formatting in DrawableTokens.kt
* fix: cleanup
---------
Co-authored-by: Ankit Kushwaha <ankkushwaha@microsoft.com>
Co-authored-by: Pun Butrach <pun.butrach@gmail.com>