Bug? Adding positive number to Label TextSize makes it smaller since the One UI 7.0 update

simonwilliamson

Member
Licensed User
I may be going mad but since yesterday's One UI update to version 7 doing the following seems to make the final size smaller. Am I missing something?

The code below is placed in a Do While loop with dt changing on each loop

B4X:
                Private newV As Float = ex.TextSize + dt
                Log($"pre-ts: ${ex.TextSize}   +   dt: ${dt}   =   ${ex.TextSize + dt}"$)
                ex.TextSize = newV
                Log($"post-ts: ${ex.TextSize}"$)

This is the logs output:
Not working.png


As you can see the post-ts is lower than the pre-ts.
 

simonwilliamson

Member
Licensed User
Dear walt61,

Thank you for looking into it.

I have attached a sample project to show it is still happening.

This has only started happening since the Galaxy devices (mine being a Tab A9+) were updated to version One UI 7.0. Android version is 15.

Screenshot 2025-06-07 124310.png
 

Attachments

  • TextSize Test.zip
    363.3 KB · Views: 132

walt61

Well-Known Member
Licensed User
Longtime User
Unfortunately, I can't reproduce the problem ☹️ (see below); perhaps someone who uses the same device can give it a go and see what happens. My environment is:
- B4A 13.10
- Xiaomi Redmi Note 10, MIUI 14.0.6, Android 12

Just one idea that comes to mind (would be nice if it did the trick) is adding a Sleep(0) after setting TestSize:
B4X:
Log($"pre-ts: ${ex.TextSize}   +   dt: ${dt}   =   ${ex.TextSize + dt}"$)
ex.TextSize = ex.TextSize + dt
               Sleep(0)
Log($"post-ts: ${ex.TextSize}"$)

B4X:
pre-ts: 75.64687   +   dt: 37.823437   =   113.47031
post-ts: 113.47031
pre-ts: 113.47031   +   dt: 18.911718   =   132.38202
post-ts: 132.38202
pre-ts: 132.38202   +   dt: 9.455859   =   141.83788
post-ts: 141.83788
pre-ts: 141.83788   +   dt: 4.7279296   =   146.56581
post-ts: 146.56581
pre-ts: 146.56581   +   dt: 2.3639648   =   148.92978
post-ts: 148.92978
pre-ts: 148.92978   +   dt: 1.1819824   =   150.11176
post-ts: 150.11176
pre-ts: 150.11176   +   dt: 0.5909912   =   150.70274
post-ts: 150.70274
pre-ts: 150.70274   +   dt: 0.2954956   =   150.99825
post-ts: 150.99825
loop count: 8
 

William Lancee

Well-Known Member
Licensed User
Longtime User
I can reproduce the problem.
This appears to be a known problem with One UI update!

Google: one ui update font issues

I haven't found a solution for B4A and multiline labels.
 

simonwilliamson

Member
Licensed User
Unfortunately, I can't reproduce the problem ☹️ (see below); perhaps someone who uses the same device can give it a go and see what happens. My environment is:
- B4A 13.10
- Xiaomi Redmi Note 10, MIUI 14.0.6, Android 12

Just one idea that comes to mind (would be nice if it did the trick) is adding a Sleep(0) after setting TestSize:
B4X:
Log($"pre-ts: ${ex.TextSize}   +   dt: ${dt}   =   ${ex.TextSize + dt}"$)
ex.TextSize = ex.TextSize + dt
               Sleep(0)
Log($"post-ts: ${ex.TextSize}"$)

B4X:
pre-ts: 75.64687   +   dt: 37.823437   =   113.47031
post-ts: 113.47031
pre-ts: 113.47031   +   dt: 18.911718   =   132.38202
post-ts: 132.38202
pre-ts: 132.38202   +   dt: 9.455859   =   141.83788
post-ts: 141.83788
pre-ts: 141.83788   +   dt: 4.7279296   =   146.56581
post-ts: 146.56581
pre-ts: 146.56581   +   dt: 2.3639648   =   148.92978
post-ts: 148.92978
pre-ts: 148.92978   +   dt: 1.1819824   =   150.11176
post-ts: 150.11176
pre-ts: 150.11176   +   dt: 0.5909912   =   150.70274
post-ts: 150.70274
pre-ts: 150.70274   +   dt: 0.2954956   =   150.99825
post-ts: 150.99825
loop count: 8
Dear walt61,

Thank you for trying. I think this is a One UI 7.0 specific issue though.
 

simonwilliamson

Member
Licensed User
I can reproduce the problem.
This appears to be a known problem with One UI update!

Google: one ui update font issues

I haven't found a solution for B4A and multiline labels.
Thank you William,

I have found the temporary workaround is to reduce the device's Font Size to the minimum option. Then the code behaves as expected.

Obviously this is not a suitable fix though.

Screenshot 2025-06-09 083536.png
 
Top