Skip to content

Commit cd2900f

Browse files
authored
Bug fix : Selecting text in login page is causing the input field to be hidden, Fixes AB#3447997 (#2826)
**Problem**: Adding android:background to an Activity theme causes input text fields to disappear when selected as reported in this bug https://identitydivision.visualstudio.com/Engineering/_workitems/edit/3383676 **Root Cause**: The android:background attribute sets a background drawable at the view level, which interferes with EditText's own background drawable that handles the focus state, underline, and cursor rendering. **Solution**: Changed from android:background to android:windowBackground. The android:windowBackground attribute sets the background at the window level (behind all views) without affecting individual view backgrounds, allowing EditText fields to maintain their focus states and remain visible. The style now correctly uses android:windowBackground which will set the white background for the entire activity window without interfering with input fields' rendering and focus behavior. Fixes [AB#3447997](https://identitydivision.visualstudio.com/fac9d424-53d2-45c0-91b5-ef6ba7a6bf26/_workitems/edit/3447997)
1 parent 5ad1ad3 commit cd2900f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,7 @@ Version 6.0.0
575575
- [PATCH] Added Base64 encode for the AuthorizationRequest state parameter (#1750)
576576
- [PATCH] Fix missing authority_url when creating the authority audience (#1753)
577577
- [PATCH] Add filter for broker telemetry event fields. (#1793)
578+
- [MINOR] Bug fix : Selecting text in login page is causing the input field to be hidden (#2826)
578579

579580
Version 5.0.1
580581
----------

common/src/main/res/values/styles.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@
6060
<!-- Theme for DualScreenActivity.
6161
Force set to a light theme (to status and navigation bars) since broker/common activities always have white background. -->
6262
<style name="DualScreenActivityTheme" parent="Theme.AppCompat.Light">
63-
<item name="android:background">@color/com_microsoft_identity_common_white</item>
63+
<item name="android:windowBackground">@color/com_microsoft_identity_common_white</item>
6464
</style>
6565
</resources>

0 commit comments

Comments
 (0)