remove emoji button for TYPE_TEXT_VARIATION_SHORT_MESSAGE

This commit is contained in:
dslul 2020-09-30 10:25:08 +02:00
parent 428a647389
commit de90cc2dcc
5 changed files with 30 additions and 63 deletions

View file

@ -13,19 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dslul.openboard.inputmethod.latin.define
package org.dslul.openboard.inputmethod.latin.define;
import android.content.SharedPreferences
import android.content.SharedPreferences;
public final class DebugFlags {
public static final boolean DEBUG_ENABLED = false;
private DebugFlags() {
// This class is not publicly instantiable.
}
@SuppressWarnings("unused")
public static void init(final SharedPreferences prefs) {
}
}
object DebugFlags {
const val DEBUG_ENABLED = false
fun init(prefs: SharedPreferences?) {}
}

View file

@ -13,26 +13,22 @@
* See the License for the specific language governing permissions and
* limitations under the License
*/
package org.dslul.openboard.inputmethod.latin.define;
package org.dslul.openboard.inputmethod.latin.define
/**
* Decoder specific constants for LatinIme.
*/
public class DecoderSpecificConstants {
object DecoderSpecificConstants {
// Must be equal to MAX_WORD_LENGTH in native/jni/src/defines.h
public static final int DICTIONARY_MAX_WORD_LENGTH = 48;
const val DICTIONARY_MAX_WORD_LENGTH = 48
// (MAX_PREV_WORD_COUNT_FOR_N_GRAM + 1)-gram is supported in Java side. Needs to modify
// MAX_PREV_WORD_COUNT_FOR_N_GRAM in native/jni/src/defines.h for suggestions.
public static final int MAX_PREV_WORD_COUNT_FOR_N_GRAM = 3;
public static final String DECODER_DICT_SUFFIX = "";
public static final boolean SHOULD_VERIFY_MAGIC_NUMBER = true;
public static final boolean SHOULD_VERIFY_CHECKSUM = true;
public static final boolean SHOULD_USE_DICT_VERSION = true;
public static final boolean SHOULD_AUTO_CORRECT_USING_NON_WHITE_LISTED_SUGGESTION = false;
public static final boolean SHOULD_REMOVE_PREVIOUSLY_REJECTED_SUGGESTION = true;
}
const val MAX_PREV_WORD_COUNT_FOR_N_GRAM = 3
const val DECODER_DICT_SUFFIX = ""
const val SHOULD_VERIFY_MAGIC_NUMBER = true
const val SHOULD_VERIFY_CHECKSUM = true
const val SHOULD_USE_DICT_VERSION = true
const val SHOULD_AUTO_CORRECT_USING_NON_WHITE_LISTED_SUGGESTION = false
const val SHOULD_REMOVE_PREVIOUSLY_REJECTED_SUGGESTION = true
}

View file

@ -13,14 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dslul.openboard.inputmethod.latin.define
package org.dslul.openboard.inputmethod.latin.define;
public final class JniLibName {
private JniLibName() {
// This class is not publicly instantiable.
}
public static final String JNI_LIB_NAME = "jni_latinime";
//public static final String JNI_LIB_NAME2 = "jni_latinimegoogle";
}
object JniLibName {
const val JNI_LIB_NAME = "jni_latinime" //public static final String JNI_LIB_NAME2 = "jni_latinimegoogle";
}

View file

@ -13,30 +13,24 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dslul.openboard.inputmethod.latin.define
package org.dslul.openboard.inputmethod.latin.define;
public final class ProductionFlags {
private ProductionFlags() {
// This class is not publicly instantiable.
}
public static final boolean IS_HARDWARE_KEYBOARD_SUPPORTED = false;
object ProductionFlags {
const val IS_HARDWARE_KEYBOARD_SUPPORTED = false
/**
* Include all suggestions from all dictionaries in
* {@link org.dslul.openboard.inputmethod.latin.SuggestedWords#mRawSuggestions}.
* [org.dslul.openboard.inputmethod.latin.SuggestedWords.mRawSuggestions].
*/
public static final boolean INCLUDE_RAW_SUGGESTIONS = false;
const val INCLUDE_RAW_SUGGESTIONS = false
/**
* When false, the metrics logging is not yet ready to be enabled.
*/
public static final boolean IS_METRICS_LOGGING_SUPPORTED = false;
const val IS_METRICS_LOGGING_SUPPORTED = false
/**
* When {@code false}, the split keyboard is not yet ready to be enabled.
* When `false`, the split keyboard is not yet ready to be enabled.
*/
public static final boolean IS_SPLIT_KEYBOARD_SUPPORTED = true;
}
const val IS_SPLIT_KEYBOARD_SUPPORTED = true
}

View file

@ -245,15 +245,6 @@
latin:keySpec="!icon/enter_key|!code/key_shift_enter"
latin:parentStyle="defaultEnterKeyStyle" />
</case>
<!-- Smiley in textShortMessage field.
This <case> should be after Shift + Enter <case> and before any of action <case>. -->
<case
latin:mode="im"
>
<key-style
latin:styleName="enterKeyStyle"
latin:parentStyle="emojiKeyStyle" />
</case>
<case
latin:imeAction="actionGo"
>