Formatting

This commit is contained in:
arkon
2022-04-08 16:44:23 -04:00
parent 2dfafa387b
commit 5afff31f72
197 changed files with 481 additions and 483 deletions
@@ -20,7 +20,7 @@ class SwitchPreferenceCategory @JvmOverloads constructor(
PreferenceCategory(
context,
attrs,
R.attr.switchPreferenceCompatStyle
R.attr.switchPreferenceCompatStyle,
),
CompoundButton.OnCheckedChangeListener {
@@ -120,7 +120,7 @@ class SwitchPreferenceCategory @JvmOverloads constructor(
getPersistedBoolean(mChecked)
} else {
defaultValue as Boolean
}
},
)
}
}
@@ -42,7 +42,7 @@ class ThemesPreference @JvmOverloads constructor(context: Context, attrs: Attrib
super.onScrolled(recyclerView, dx, dy)
lastScrollPosition = recyclerView.computeHorizontalScrollOffset()
}
})
},)
lastScrollPosition?.let { scrollToOffset(it) }
}
@@ -65,7 +65,7 @@ class ThemesPreference @JvmOverloads constructor(context: Context, attrs: Attrib
scrollToPositionWithOffset(
// 114dp is the width of the pref_theme_item layout
lX / 114.dpToPx,
-lX % 114.dpToPx
-lX % 114.dpToPx,
)
}
lastScrollPosition = it.computeHorizontalScrollOffset()