updating commons and adding greek language

This commit is contained in:
tibbi 2022-12-24 21:20:59 +01:00
parent 2a2489d18e
commit 33ab62be22
7 changed files with 9 additions and 5 deletions

View File

@ -65,7 +65,7 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:9162225f33'
implementation 'com.github.SimpleMobileTools:Simple-Commons:6323be1fd7'
implementation 'androidx.emoji2:emoji2-bundled:1.2.0'
kapt 'androidx.room:room-compiler:2.4.3'

View File

@ -91,7 +91,7 @@ class ClipsKeyboardAdapter(
if (sectionLabel.isCurrent) {
setOnLongClickListener { context.toast(R.string.pin_text); true; }
setImageDrawable(resources.getDrawable(R.drawable.ic_pin))
setImageDrawable(resources.getDrawable(R.drawable.ic_pin_vector))
setOnClickListener {
ensureBackgroundThread {
val currentClip = context.getCurrentClip() ?: return@ensureBackgroundThread
@ -105,7 +105,7 @@ class ClipsKeyboardAdapter(
}
}
} else {
setImageDrawable(resources.getDrawable(R.drawable.ic_pin_filled))
setImageDrawable(resources.getDrawable(R.drawable.ic_pin_filled_vector))
background = null // avoid doing any animations on clicking clipboard_manager_holder
}
}

View File

@ -157,6 +157,7 @@ fun Context.getKeyboardLanguages(): ArrayList<RadioItem> {
RadioItem(LANGUAGE_ENGLISH_DVORAK, getKeyboardLanguageText(LANGUAGE_ENGLISH_DVORAK)),
RadioItem(LANGUAGE_FRENCH, getKeyboardLanguageText(LANGUAGE_FRENCH)),
RadioItem(LANGUAGE_GERMAN, getKeyboardLanguageText(LANGUAGE_GERMAN)),
RadioItem(LANGUAGE_GREEK, getKeyboardLanguageText(LANGUAGE_GREEK)),
RadioItem(LANGUAGE_LITHUANIAN, getKeyboardLanguageText(LANGUAGE_LITHUANIAN)),
RadioItem(LANGUAGE_ROMANIAN, getKeyboardLanguageText(LANGUAGE_ROMANIAN)),
RadioItem(LANGUAGE_RUSSIAN, getKeyboardLanguageText(LANGUAGE_RUSSIAN)),
@ -174,6 +175,7 @@ fun Context.getKeyboardLanguageText(language: Int): String {
LANGUAGE_ENGLISH_QWERTZ -> "${getString(R.string.translation_english)} (QWERTZ)"
LANGUAGE_FRENCH -> getString(R.string.translation_french)
LANGUAGE_GERMAN -> getString(R.string.translation_german)
LANGUAGE_GREEK -> getString(R.string.translation_greek)
LANGUAGE_LITHUANIAN -> getString(R.string.translation_lithuanian)
LANGUAGE_ROMANIAN -> getString(R.string.translation_romanian)
LANGUAGE_RUSSIAN -> getString(R.string.translation_russian)

View File

@ -31,6 +31,7 @@ const val LANGUAGE_BULGARIAN = 9
const val LANGUAGE_TURKISH_Q = 10
const val LANGUAGE_LITHUANIAN = 11
const val LANGUAGE_BENGALI = 12
const val LANGUAGE_GREEK = 13
// keyboard height multiplier options
const val KEYBOARD_HEIGHT_MULTIPLIER_SMALL = 1

View File

@ -265,6 +265,7 @@ class SimpleKeyboardIME : InputMethodService(), MyKeyboardView.OnKeyboardActionL
LANGUAGE_ENGLISH_QWERTZ -> R.xml.keys_letters_english_qwertz
LANGUAGE_FRENCH -> R.xml.keys_letters_french
LANGUAGE_GERMAN -> R.xml.keys_letters_german
LANGUAGE_GREEK -> R.xml.keys_letters_greek
LANGUAGE_LITHUANIAN -> R.xml.keys_letters_lithuanian
LANGUAGE_ROMANIAN -> R.xml.keys_letters_romanian
LANGUAGE_RUSSIAN -> R.xml.keys_letters_russian

View File

@ -22,6 +22,6 @@
android:alpha="0.8"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:padding="@dimen/small_margin"
android:src="@drawable/ic_pin" />
android:src="@drawable/ic_pin_vector" />
</RelativeLayout>

View File

@ -9,7 +9,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.0'
classpath 'com.android.tools.build:gradle:7.3.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong