Compare commits

...
2 Commits
Author SHA1 Message Date
Jules Aguillon b772ebf237 Release 1.9.1 (11) 2021-05-09 12:23:45 +02:00
Jules Aguillon 092b8e1c15 Fix recently introduced crash 2021-05-09 12:14:56 +02:00
3 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="juloo.keyboard2"
android:versionCode="10"
android:versionName="1.9"
android:versionCode="11"
android:versionName="1.9.1"
android:hardwareAccelerated="false">
<uses-sdk android:minSdkVersion="4"
+2 -2
View File
@@ -57,7 +57,7 @@ class Config
horizontalMargin = res.getDimension(R.dimen.horizontal_margin);
preciseRepeat = true;
characterSize = 1.f;
accents = 0;
accents = 1;
// from prefs
refresh();
// initialized later
@@ -83,7 +83,7 @@ class Config
horizontalMargin = getDipPref(prefs, "horizontal_margin", horizontalMargin);
preciseRepeat = prefs.getBoolean("precise_repeat", preciseRepeat);
characterSize = prefs.getFloat("character_size", characterSize);
accents = Integer.valueOf(prefs.getString("accents", ""));
accents = Integer.valueOf(prefs.getString("accents", "1"));
}
private float getDipPref(SharedPreferences prefs, String pref_name, float def)
+4 -1
View File
@@ -12,10 +12,13 @@ public class Emoji extends KeyValue
{
private final String _desc;
private static HashMap<String, Emoji> emojis_by_name = new HashMap<String, Emoji>();
protected Emoji(String name, String bytecode, String desc)
{
super(name, bytecode, CHAR_NONE, EVENT_NONE, 0);
_desc = desc;
emojis_by_name.put(name, this);
}
public String getDescription()
@@ -29,7 +32,7 @@ public class Emoji extends KeyValue
public static Emoji getEmojiByName(String name)
{
return ((Emoji)KeyValue.getKeyByName(name));
return emojis_by_name.get(name);
}
public static Emoji[] getEmojisByGroup(int group_id)