More inclusive language.

Test: Builds
Bug: 161896447
Change-Id: Ie4d64dca9f4720eea532b534162e47ed81aea03b
This commit is contained in:
Alan Stokes
2020-07-27 18:02:48 +01:00
parent 0f6b2ec233
commit cd2c453cbd
2 changed files with 2 additions and 2 deletions

View File

@@ -184,7 +184,7 @@ public class ScreenPinningSettings extends SettingsPreferenceFragment
} }
/** /**
* Listens to the state change of the lock-to-app master switch. * Listens to the state change of the overall lock-to-app switch.
*/ */
@Override @Override
public void onSwitchChanged(Switch switchView, boolean isChecked) { public void onSwitchChanged(Switch switchView, boolean isChecked) {

View File

@@ -112,7 +112,7 @@ public class LockAfterTimeoutPreferenceController extends AbstractPreferenceCont
mDPM.getMaximumTimeToLock(null /* admin */, UserHandle.myUserId()); mDPM.getMaximumTimeToLock(null /* admin */, UserHandle.myUserId());
final long displayTimeout = Math.max(0, final long displayTimeout = Math.max(0,
Settings.System.getInt(mContext.getContentResolver(), SCREEN_OFF_TIMEOUT, 0)); Settings.System.getInt(mContext.getContentResolver(), SCREEN_OFF_TIMEOUT, 0));
// This setting is a slave to display timeout when a device policy is enforced. // This setting is a secondary to display timeout when a device policy is enforced.
// As such, maxLockTimeout = adminTimeout - displayTimeout. // As such, maxLockTimeout = adminTimeout - displayTimeout.
// If there isn't enough time, shows "immediately" setting. // If there isn't enough time, shows "immediately" setting.
final long maxTimeout = Math.max(0, adminTimeout - displayTimeout); final long maxTimeout = Math.max(0, adminTimeout - displayTimeout);