Skip to content

Commit

Permalink
fixed some linting issue and resolved the issue with ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashvardhan-17 committed Sep 19, 2024
1 parent 536259e commit 21a97fb
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 14 deletions.
6 changes: 0 additions & 6 deletions app/src/main/java/be/scri/fragments/AboutFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package be.scri.fragments

import android.content.Intent
import android.os.Bundle
import android.view.GestureDetector
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
Expand All @@ -16,11 +15,8 @@ import be.scri.helpers.CustomAdapter
import be.scri.models.ItemsViewModel

class AboutFragment : Fragment() {


private lateinit var binding: FragmentAboutBinding


override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
Expand Down Expand Up @@ -217,6 +213,4 @@ class AboutFragment : Fragment() {
fragmentTransaction.addToBackStack(null)
fragmentTransaction.commit()
}


}
2 changes: 0 additions & 2 deletions app/src/main/java/be/scri/services/FrenchKeyboardIME.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import be.scri.views.MyKeyboardView
class FrenchKeyboardIME : SimpleKeyboardIME() {
override fun getKeyboardLayoutXML(): Int = R.xml.keys_letters_french



enum class ScribeState {
IDLE,
SELECT_COMMAND,
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/java/be/scri/services/GermanKeyboardIME.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ class GermanKeyboardIME : SimpleKeyboardIME() {
keyboard = MyKeyboard(this, getKeyboardLayoutXML(), enterKeyType)
}



private fun shouldCommitPeriodAfterSpace(language: String): Boolean {
val sharedPref = getSharedPreferences("app_preferences", Context.MODE_PRIVATE)
return sharedPref.getBoolean("period_on_double_tap_$language", false)
Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/be/scri/services/ItalianKeyboardIME.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class ItalianKeyboardIME : SimpleKeyboardIME() {
keyboard = MyKeyboard(this, getKeyboardLayoutXML(), enterKeyType)
}


private fun shouldCommitPeriodAfterSpace(language: String): Boolean {
val sharedPref = getSharedPreferences("app_preferences", Context.MODE_PRIVATE)
return sharedPref.getBoolean("period_on_double_tap_$language", false)
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/java/be/scri/services/PortugueseKeyboardIME.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ class PortugueseKeyboardIME : SimpleKeyboardIME() {
keyboard = MyKeyboard(this, getKeyboardLayoutXML(), enterKeyType)
}



private fun shouldCommitPeriodAfterSpace(language: String): Boolean {
val sharedPref = getSharedPreferences("app_preferences", Context.MODE_PRIVATE)
return sharedPref.getBoolean("period_on_double_tap_$language", false)
Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/be/scri/services/RussianKeyboardIME.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class RussianKeyboardIME : SimpleKeyboardIME() {
keyboard = MyKeyboard(this, getKeyboardLayoutXML(), enterKeyType)
}


private fun shouldCommitPeriodAfterSpace(language: String): Boolean {
val sharedPref = getSharedPreferences("app_preferences", Context.MODE_PRIVATE)
return sharedPref.getBoolean("period_on_double_tap_$language", false)
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ android.nonFinalResIds=false
android.nonTransitiveRClass=false
android.useAndroidX=true
org.gradle.jvmargs=-Xmx4g -Xms1g

0 comments on commit 21a97fb

Please sign in to comment.