Skip to content

Commit 33ab62b

Browse files
committed
updating commons and adding greek language
1 parent 2a2489d commit 33ab62b

File tree

7 files changed

+9
-5
lines changed

7 files changed

+9
-5
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ android {
6565
}
6666

6767
dependencies {
68-
implementation 'com.github.SimpleMobileTools:Simple-Commons:9162225f33'
68+
implementation 'com.github.SimpleMobileTools:Simple-Commons:6323be1fd7'
6969
implementation 'androidx.emoji2:emoji2-bundled:1.2.0'
7070

7171
kapt 'androidx.room:room-compiler:2.4.3'

app/src/main/kotlin/com/simplemobiletools/keyboard/adapters/ClipsKeyboardAdapter.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class ClipsKeyboardAdapter(
9191

9292
if (sectionLabel.isCurrent) {
9393
setOnLongClickListener { context.toast(R.string.pin_text); true; }
94-
setImageDrawable(resources.getDrawable(R.drawable.ic_pin))
94+
setImageDrawable(resources.getDrawable(R.drawable.ic_pin_vector))
9595
setOnClickListener {
9696
ensureBackgroundThread {
9797
val currentClip = context.getCurrentClip() ?: return@ensureBackgroundThread
@@ -105,7 +105,7 @@ class ClipsKeyboardAdapter(
105105
}
106106
}
107107
} else {
108-
setImageDrawable(resources.getDrawable(R.drawable.ic_pin_filled))
108+
setImageDrawable(resources.getDrawable(R.drawable.ic_pin_filled_vector))
109109
background = null // avoid doing any animations on clicking clipboard_manager_holder
110110
}
111111
}

app/src/main/kotlin/com/simplemobiletools/keyboard/extensions/Context.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ fun Context.getKeyboardLanguages(): ArrayList<RadioItem> {
157157
RadioItem(LANGUAGE_ENGLISH_DVORAK, getKeyboardLanguageText(LANGUAGE_ENGLISH_DVORAK)),
158158
RadioItem(LANGUAGE_FRENCH, getKeyboardLanguageText(LANGUAGE_FRENCH)),
159159
RadioItem(LANGUAGE_GERMAN, getKeyboardLanguageText(LANGUAGE_GERMAN)),
160+
RadioItem(LANGUAGE_GREEK, getKeyboardLanguageText(LANGUAGE_GREEK)),
160161
RadioItem(LANGUAGE_LITHUANIAN, getKeyboardLanguageText(LANGUAGE_LITHUANIAN)),
161162
RadioItem(LANGUAGE_ROMANIAN, getKeyboardLanguageText(LANGUAGE_ROMANIAN)),
162163
RadioItem(LANGUAGE_RUSSIAN, getKeyboardLanguageText(LANGUAGE_RUSSIAN)),
@@ -174,6 +175,7 @@ fun Context.getKeyboardLanguageText(language: Int): String {
174175
LANGUAGE_ENGLISH_QWERTZ -> "${getString(R.string.translation_english)} (QWERTZ)"
175176
LANGUAGE_FRENCH -> getString(R.string.translation_french)
176177
LANGUAGE_GERMAN -> getString(R.string.translation_german)
178+
LANGUAGE_GREEK -> getString(R.string.translation_greek)
177179
LANGUAGE_LITHUANIAN -> getString(R.string.translation_lithuanian)
178180
LANGUAGE_ROMANIAN -> getString(R.string.translation_romanian)
179181
LANGUAGE_RUSSIAN -> getString(R.string.translation_russian)

app/src/main/kotlin/com/simplemobiletools/keyboard/helpers/Constants.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const val LANGUAGE_BULGARIAN = 9
3131
const val LANGUAGE_TURKISH_Q = 10
3232
const val LANGUAGE_LITHUANIAN = 11
3333
const val LANGUAGE_BENGALI = 12
34+
const val LANGUAGE_GREEK = 13
3435

3536
// keyboard height multiplier options
3637
const val KEYBOARD_HEIGHT_MULTIPLIER_SMALL = 1

app/src/main/kotlin/com/simplemobiletools/keyboard/services/SimpleKeyboardIME.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ class SimpleKeyboardIME : InputMethodService(), MyKeyboardView.OnKeyboardActionL
265265
LANGUAGE_ENGLISH_QWERTZ -> R.xml.keys_letters_english_qwertz
266266
LANGUAGE_FRENCH -> R.xml.keys_letters_french
267267
LANGUAGE_GERMAN -> R.xml.keys_letters_german
268+
LANGUAGE_GREEK -> R.xml.keys_letters_greek
268269
LANGUAGE_LITHUANIAN -> R.xml.keys_letters_lithuanian
269270
LANGUAGE_ROMANIAN -> R.xml.keys_letters_romanian
270271
LANGUAGE_RUSSIAN -> R.xml.keys_letters_russian

app/src/main/res/layout/item_section_label.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
android:alpha="0.8"
2323
android:background="?android:attr/selectableItemBackgroundBorderless"
2424
android:padding="@dimen/small_margin"
25-
android:src="@drawable/ic_pin" />
25+
android:src="@drawable/ic_pin_vector" />
2626

2727
</RelativeLayout>

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99
}
1010

1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:7.3.0'
12+
classpath 'com.android.tools.build:gradle:7.3.1'
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414

1515
// NOTE: Do not place your application dependencies here; they belong

0 commit comments

Comments
 (0)