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

Skip to content
Commit 611aa05b authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

PointerIcon: Create bitmap using density-aware constructor

Instead of manually setting the density of a Bitmap that we create
(which looks like we're working around Bitmap's functionality), use
Bitmap's density-aware constructor that takes a DisplayMetrics object.
It essentially provides the same functionality as setting the density,
but since it's wrapped up in a supported constructor, it increases
readability and removes the need for us to explain what we're doing.

Bug: 305193969
Test: Presubmit
Change-Id: I2b4bdc60e2744a89c8154bd9359de6254a810426
parent 6f918e27
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment