diff options
| author | Michele Bono <bono.michele94@gmail.com> | 2019-07-22 09:15:53 +0200 |
|---|---|---|
| committer | Michele Bono <bono.michele94@gmail.com> | 2019-08-27 10:20:44 +0200 |
| commit | add6ae542a7cd3230fcf7b91d432f92487e5ca20 (patch) | |
| tree | ad596fad3cbd64f228f5685b2c48ea4226de7e07 /configpanel/src/org/lineageos/settings/device/SwitchPreferenceBackend.java | |
| parent | 82884745ecc7c29771f081e8893edc49db4349c7 (diff) | |
Diffstat (limited to 'configpanel/src/org/lineageos/settings/device/SwitchPreferenceBackend.java')
| -rw-r--r-- | configpanel/src/org/lineageos/settings/device/SwitchPreferenceBackend.java | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/configpanel/src/org/lineageos/settings/device/SwitchPreferenceBackend.java b/configpanel/src/org/lineageos/settings/device/SwitchPreferenceBackend.java deleted file mode 100644 index 3100f4a..0000000 --- a/configpanel/src/org/lineageos/settings/device/SwitchPreferenceBackend.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2018 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.lineageos.settings.device; - -public abstract class SwitchPreferenceBackend { - protected Boolean mDefaultValue; - protected Boolean mValue; - - public SwitchPreferenceBackend(Boolean defaultValue) { - mDefaultValue = defaultValue; - mValue = defaultValue; - } - - public Boolean getValue() { - return mValue; - } - - public Boolean getDefaultValue() { - return mDefaultValue; - } - - public void setDefaultValue() { - setValue(mDefaultValue); - } - - public abstract void setValue(Boolean value); - - public abstract Boolean isValid(); -} |
