Skip to content

Commit

Permalink
Fix backing property naming issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Linfye committed Sep 11, 2024
1 parent 8231db4 commit 051df94
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ continuation_indent_size = 4
wildcard_import_limit = 999
ij_kotlin_name_count_to_use_star_import = 999
ij_kotlin_name_count_to_use_star_import_for_members = 999
ktlint_standard_backing-property-naming = disabled
ktlint_standard_filename = disabled

ktlint_code_style = ktlint_official
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import be.scri.models.SwitchItem

class LanguageSettingsFragment : Fragment() {
private var _binding: FragmentLanguageSettingsBinding? = null
private val binding get() = _binding!!
val binding get() = _binding!!

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/be/scri/views/MyKeyboardView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class MyKeyboardView
}

private var _popupBinding: KeyboardPopupKeyboardBinding? = null
private val popupBinding: KeyboardPopupKeyboardBinding
val popupBinding: KeyboardPopupKeyboardBinding
get() {
if (_popupBinding == null) {
_popupBinding = KeyboardPopupKeyboardBinding.inflate(LayoutInflater.from(context))
Expand All @@ -217,7 +217,7 @@ class MyKeyboardView
}

private var _keyboardBinding: KeyboardViewKeyboardBinding? = null
private val keyboardBinding: KeyboardViewKeyboardBinding
val keyboardBinding: KeyboardViewKeyboardBinding
get() {
if (_keyboardBinding == null) {
_keyboardBinding = KeyboardViewKeyboardBinding.inflate(LayoutInflater.from(context))
Expand Down

0 comments on commit 051df94

Please sign in to comment.