Derestrict ContextWrapper.createApplicationContext.

Usage has been discovered by an app so reverting this to its previous
state. This is conceptually a partial revert of change 5d123b6775.

NoNonSdkCheck: b/170729553

Bug: 175981568
Test: m
Change-Id: I3e61d3f56f176d573f68ba85f3b1762686aa62ef
This commit is contained in:
Mathew Inwood
2021-01-06 09:33:01 +00:00
parent 281c972290
commit 4224dc8b99

View File

@@ -943,7 +943,7 @@ public class ContextWrapper extends Context {
/** @hide */
@Override
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
@UnsupportedAppUsage(trackingBug = 175981568)
public Context createApplicationContext(ApplicationInfo application,
int flags) throws PackageManager.NameNotFoundException {
return mBase.createApplicationContext(application, flags);