Revert "[Settings] Convert to getSystemService(Class<T>)"
Revert submission 1645152-getSystemService(Class<T>) Reason for revert: Fix JUnit test failure Reverted Changes: I1b4812044:[Settings] Convert to getSystemService(Class<T>) I278951c24:[Settings] Support getSystemService(Class<T>) Change-Id: I864a40f82ba9cb4170900ac0c1d77f781b17341f
This commit is contained in:
@@ -31,7 +31,7 @@ public class NetworkResetRestrictionChecker {
|
||||
|
||||
public NetworkResetRestrictionChecker(Context context) {
|
||||
mContext = context;
|
||||
mUserManager = context.getSystemService(UserManager.class);
|
||||
mUserManager = (UserManager) context.getSystemService(Context.USER_SERVICE);
|
||||
}
|
||||
|
||||
@VisibleForTesting(otherwise = VisibleForTesting.PRIVATE)
|
||||
|
||||
Reference in New Issue
Block a user