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:
Zhen Zhang
2024-01-04 10:30:22 -06:00
parent ced0c1d038
commit 22632be393
3 changed files with 8 additions and 7 deletions

View File

@@ -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));