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

Commit a74da271 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Add ActivityThread.currentSystemContext().

We want to expose getSystemContext(), but unfortunately it returns
ContextImpl not Context, and we can't change the result type
because of the @UnsupportedAppUsage.

This means we'd need to create another getter with a return type of
Context, which means we'd have to update the callsites. So let's
just add a static currentSystemContext() just like the other current*()
methods, because that's what almost all clients would want to use anyway.

Bug: 402153527
Test: $ANDROID_BUILD_TOP/frameworks/base/ravenwood/scripts/run-ravenwood-tests.sh -s
Flag: EXEMPT refactoring only
Change-Id: I06aaa85bb50a7ebd69910272193ac54263cfcc00
parent 1eec3dda
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