Skip to content

Commit 1abe7ed

Browse files
committed
AODLockscreenSection: Use GenericSection's featureManger
We don't need to define it again, it has been defined and initialized in GenericSection already. Also remove Log for ClockManager Signed-off-by: IacobIonut01 <[email protected]>
1 parent 0cf7ded commit 1abe7ed

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/src/main/java/com/android/settings/dotextras/custom/sections/AODLockscreenSection.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ class AODLockscreenSection : GenericSection() {
6565
}
6666
if (!mClockManager.isAvailable) {
6767
view.findViewById<LinearLayout>(R.id.clockfaceSection).visibility = View.GONE
68-
Log.e("ClockManager", "Not available")
6968
} else {
7069
mClockManager.fetchOptions({ options ->
7170
run {
@@ -97,7 +96,6 @@ class AODLockscreenSection : GenericSection() {
9796
}, false)
9897
}
9998
val optionsList = ArrayList<ContextCards>()
100-
val featureManager = FeatureManager(requireContext().contentResolver)
10199
if (featureManager.Secure().getInt(featureManager.Secure().DOZE_ENABLED, 0) == 1) {
102100
buildSwitch(optionsList,
103101
iconID = R.drawable.ic_aod,

0 commit comments

Comments
 (0)