profiles: Fix typo in static variable naming

Change-Id: Ic17febc55e6726f0efc18c201223856bbc2798b3
This commit is contained in:
Bruno Martins
2020-04-21 10:49:51 +01:00
parent bd39ad8c07
commit b485a25aa3
6 changed files with 18 additions and 16 deletions

View File

@@ -1,5 +1,6 @@
/*
* Copyright (C) 2015 The CyanogenMod Project
* 2020 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -65,7 +66,7 @@ public final class AirplaneModeSettings implements Parcelable {
*/
public static class BooleanState {
/** Disabled state */
public static final int STATE_DISALED = 0;
public static final int STATE_DISABLED = 0;
/** Enabled state */
public static final int STATE_ENABLED = 1;
}
@@ -80,16 +81,16 @@ public final class AirplaneModeSettings implements Parcelable {
/**
* Construct a {@link AirplaneModeSettings} with a default value of
* {@link BooleanState#STATE_DISALED}.
* {@link BooleanState#STATE_DISABLED}.
*/
public AirplaneModeSettings() {
this(BooleanState.STATE_DISALED, false);
this(BooleanState.STATE_DISABLED, false);
}
/**
* Construct a {@link AirplaneModeSettings} with a default value and whether or not it should
* override user settings.
* @param value ex: {@link BooleanState#STATE_DISALED}
* @param value ex: {@link BooleanState#STATE_DISABLED}
* @param override whether or not the setting should override user settings
*/
public AirplaneModeSettings(int value, boolean override) {
@@ -108,7 +109,7 @@ public final class AirplaneModeSettings implements Parcelable {
/**
* Set the default value for the {@link AirplaneModeSettings}
* @param value {@link BooleanState#STATE_DISALED}
* @param value {@link BooleanState#STATE_DISABLED}
*/
public void setValue(int value) {
mValue = value;

View File

@@ -52,7 +52,7 @@ import java.io.IOException;
* ConnectionSettings connectionSettings =
* new ConnectionSettings(ConnectionSettings.PROFILE_CONNECTION_SYNC,
* shouldBeEnabled() ?
* {@link BooleanState#STATE_ENABLED} : {@link BooleanState#STATE_DISALED},
* {@link BooleanState#STATE_ENABLED} : {@link BooleanState#STATE_DISABLED},
* true)
* profile.setConnectionSettings(connectionSettings);
* </pre>
@@ -146,7 +146,7 @@ public final class ConnectionSettings implements Parcelable {
*/
public static class BooleanState {
/** Disabled state */
public static final int STATE_DISALED = 0;
public static final int STATE_DISABLED = 0;
/** Enabled state */
public static final int STATE_ENABLED = 1;
}