Skip to content
Snippets Groups Projects
Commit dafb9f25 authored by Motomu Utsumi's avatar Motomu Utsumi
Browse files

Rename to isTetheringFeatureNotChickenedOut

Original name was isTetheringFeatureForceDisabled but it's expected that
the caller of this method will use as `enabled =
!isTetheringFeatureForceDisabled` which is error prune.
So aosp/2711138 renames to isTetheringFeatureNotChickenedOut and updates to
return true if the feature is not disabled.

Bug: 279108992
Test: m
Change-Id: Ia992113e9fb1aee09fcfe48e2b39ca03876063ee
parent 48ee6ad0
No related branches found
No related tags found
No related merge requests found
......@@ -993,7 +993,7 @@ public class KeepaliveTracker {
*/
public boolean isAddressTranslationEnabled(@NonNull Context context) {
return DeviceConfigUtils.isFeatureSupported(context, FEATURE_CLAT_ADDRESS_TRANSLATE)
&& !DeviceConfigUtils.isTetheringFeatureForceDisabled(
&& DeviceConfigUtils.isTetheringFeatureNotChickenedOut(
CONFIG_DISABLE_CLAT_ADDRESS_TRANSLATE);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment