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

Skip to content
Commit 5b828730 authored by Michael Hoisie's avatar Michael Hoisie
Browse files

Make system property reading in LayoutlibLoader more DRY

The system properties can be stored in a std::unordered_map and can be
read in one fell swoop.

This reduces the amount of JNI boilerplate required to read individual
system properties.

Also remove the '**n/a**' magic string. LayoutLibLoader system property
logic is designed to support the empty string value.

This is effectively a cherry-pick of ag/25672148 but modified for
LayoutlibLoader in `main`.

Test: layoutlib-tests
Change-Id: I7562dc6eecada3199d8a3b20879b2e1b296cfb32
parent 082e90ea
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