diff options
Diffstat (limited to 'doze')
-rw-r--r-- | doze/Android.mk | 10 | ||||
-rw-r--r-- | doze/src/org/lineageos/settings/doze/DozeSettingsFragment.java | 10 | ||||
-rw-r--r-- | doze/src/org/lineageos/settings/doze/Utils.java | 2 |
3 files changed, 8 insertions, 14 deletions
diff --git a/doze/Android.mk b/doze/Android.mk index 76a8405..e72c9b5 100644 --- a/doze/Android.mk +++ b/doze/Android.mk @@ -13,12 +13,8 @@ LOCAL_PRIVILEGED_MODULE := true LOCAL_USE_AAPT2 := true LOCAL_STATIC_ANDROID_LIBRARIES := \ - android-support-v4 \ - android-support-v13 \ - android-support-v7-recyclerview \ - android-support-v7-preference \ - android-support-v7-appcompat \ - android-support-v14-preference + androidx.core_core \ + androidx.preference_preference LOCAL_RESOURCE_DIR := \ $(LOCAL_PATH)/res \ @@ -27,5 +23,3 @@ LOCAL_RESOURCE_DIR := \ LOCAL_PROGUARD_FLAG_FILES := proguard.flags include $(BUILD_PACKAGE) - -include $(call all-makefiles-under,$(LOCAL_PATH)) diff --git a/doze/src/org/lineageos/settings/doze/DozeSettingsFragment.java b/doze/src/org/lineageos/settings/doze/DozeSettingsFragment.java index fd1756e..d7db2dd 100644 --- a/doze/src/org/lineageos/settings/doze/DozeSettingsFragment.java +++ b/doze/src/org/lineageos/settings/doze/DozeSettingsFragment.java @@ -26,11 +26,6 @@ import android.content.Context; import android.content.DialogInterface; import android.content.SharedPreferences; import android.os.Bundle; -import android.support.v14.preference.PreferenceFragment; -import android.support.v14.preference.SwitchPreference; -import android.support.v7.preference.Preference; -import android.support.v7.preference.PreferenceCategory; -import android.support.v7.preference.Preference.OnPreferenceChangeListener; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; @@ -38,6 +33,11 @@ import android.view.ViewGroup; import android.widget.CompoundButton; import android.widget.Switch; import android.widget.TextView; +import androidx.preference.Preference; +import androidx.preference.Preference.OnPreferenceChangeListener; +import androidx.preference.PreferenceCategory; +import androidx.preference.PreferenceFragment; +import androidx.preference.SwitchPreference; public class DozeSettingsFragment extends PreferenceFragment implements OnPreferenceChangeListener, CompoundButton.OnCheckedChangeListener { diff --git a/doze/src/org/lineageos/settings/doze/Utils.java b/doze/src/org/lineageos/settings/doze/Utils.java index 9cd7fdd..7aa6884 100644 --- a/doze/src/org/lineageos/settings/doze/Utils.java +++ b/doze/src/org/lineageos/settings/doze/Utils.java @@ -21,9 +21,9 @@ import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.os.UserHandle; -import android.support.v7.preference.PreferenceManager; import android.provider.Settings; import android.util.Log; +import androidx.preference.PreferenceManager; import static android.provider.Settings.Secure.DOZE_ENABLED; |