Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6926cb1e authored by Wenbo Jie's avatar Wenbo Jie
Browse files

[DocsUI M3] No literal dimension numbers in the code

Dimension related view setters like setStrokeWidth are only
dealing with pixel numbers, not dp numbers, so we shouldn't
use any number literal in the code. Instead, we should define
the dimension as a number resource and use getDimensionPixelSize()
to get its pixel value in the code before calling these setter
methods.

Bug: 402617801
Test: m DocumentsUIGoogle && manual inspection
Flag: com.android.documentsui.flags.use_material3
Change-Id: Ifbbfd2b006985841ff9a581a485e924d1bf1976b
parent 165058c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment