Rename method name
Renamed checkIfMeteredDataRestricted() to checkIfMeteredDataUsageUserControllerDisabled() to relect its actual usage. Test: built successfully Bug: 317265503 Change-Id: I76189da1da510067d5a715c5a34b6a18e53544fc
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
package com.android.settings.datausage;
|
||||
|
||||
import static com.android.settingslib.RestrictedLockUtilsInternal.checkIfMeteredDataRestricted;
|
||||
import static com.android.settingslib.RestrictedLockUtilsInternal.checkIfMeteredDataUsageUserControlDisabled;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.drawable.Drawable;
|
||||
@@ -56,8 +56,8 @@ public class UnrestrictedDataAccessPreference extends AppSwitchPreference implem
|
||||
mApplicationsState = applicationsState;
|
||||
mDataSaverBackend = dataSaverBackend;
|
||||
mParentFragment = parentFragment;
|
||||
setDisabledByAdmin(checkIfMeteredDataRestricted(context, entry.info.packageName,
|
||||
UserHandle.getUserId(entry.info.uid)));
|
||||
setDisabledByAdmin(checkIfMeteredDataUsageUserControlDisabled(
|
||||
context, entry.info.packageName, UserHandle.getUserId(entry.info.uid)));
|
||||
updateState();
|
||||
setKey(generateKey(mEntry));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user