0
0
mirror of https://github.com/florisboard/florisboard.git synced 2024-09-19 19:42:20 +02:00

Fix issues / Update README.md

This commit is contained in:
Patrick Goldinger 2020-04-28 21:20:46 +02:00
parent 5e018a89e4
commit 648bcee605
4 changed files with 14 additions and 13 deletions

View File

@ -13,15 +13,18 @@ An open-source keyboard for Android. Currently in early-alpha stage.
* [ ] Emoji layout
* [x] Caps + Caps Lock
* [x] Key popups (buggy atm)
* [x] Key press sound/vibration
* [x] More characters on long press
* [ ] Preferences screen
* [x] Preferences screen
* [ ] Customize look and behaviour of keyboard
* [ ] Theme customization
* [ ] Adapt to situation in app (password, url, text, etc. )
* [ ] Auto suggest words
* [ ] Auto suggest words from user dictionary
* [ ] Auto suggest contacts
* [ ] Layout selection
* [ ] Clipboard manager
* [ ] One-hand mode
* [ ] Full integration in IME service list of Android (xml/method)
* [ ] ...
## Used libraries and icons

View File

@ -46,7 +46,6 @@
android:label="@string/app_name"
android:launchMode="singleTop"
android:targetActivity="dev.patrickgold.florisboard.settings.SettingsMainActivity"
android:enabled="false"
android:theme="@style/SettingsTheme.Light">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

View File

@ -124,16 +124,15 @@ class KeyView(
private fun keyPressSound() {
if (florisboard.prefs!!.soundEnabled) {
var soundVolume = florisboard.prefs!!.soundVolume
if (soundVolume == 0 && florisboard.prefs!!.soundEnabledSystem) {
soundVolume = 36
val effect = when (data.code) {
KeyCode.SPACE -> AudioManager.FX_KEYPRESS_SPACEBAR
KeyCode.DELETE -> AudioManager.FX_KEYPRESS_DELETE
KeyCode.ENTER -> AudioManager.FX_KEYPRESS_RETURN
else -> AudioManager.FX_KEYPRESS_STANDARD
}
if (soundVolume > 0) {
val effect = when (data.code) {
KeyCode.SPACE -> AudioManager.FX_KEYPRESS_SPACEBAR
KeyCode.DELETE -> AudioManager.FX_KEYPRESS_DELETE
KeyCode.ENTER -> AudioManager.FX_KEYPRESS_RETURN
else -> AudioManager.FX_KEYPRESS_STANDARD
}
if (soundVolume == 0 && florisboard.prefs!!.soundEnabledSystem) {
florisboard.audioManager!!.playSoundEffect(effect)
} else if (soundVolume > 0) {
florisboard.audioManager!!.playSoundEffect(effect, soundVolume / 100f)
}
}

View File

@ -3,7 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto">
<SwitchPreferenceCompat
android:defaultValue="false"
android:defaultValue="true"
app:key="advanced__show_app_icon"
app:iconSpaceReserved="false"
app:title="@string/pref__advanced__show_app_icon__label"