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 * See the License for the specific language governing permissions and
* limitations under the License. * 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; object DebugFlags {
const val DEBUG_ENABLED = false
public final class DebugFlags { fun init(prefs: SharedPreferences?) {}
public static final boolean DEBUG_ENABLED = false;
private DebugFlags() {
// This class is not publicly instantiable.
}
@SuppressWarnings("unused")
public static void init(final SharedPreferences prefs) {
}
} }

View file

@ -13,26 +13,22 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License * limitations under the License
*/ */
package org.dslul.openboard.inputmethod.latin.define
package org.dslul.openboard.inputmethod.latin.define;
/** /**
* Decoder specific constants for LatinIme. * Decoder specific constants for LatinIme.
*/ */
public class DecoderSpecificConstants { object DecoderSpecificConstants {
// Must be equal to MAX_WORD_LENGTH in native/jni/src/defines.h // 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 + 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. // 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; const val MAX_PREV_WORD_COUNT_FOR_N_GRAM = 3
const val DECODER_DICT_SUFFIX = ""
public static final String DECODER_DICT_SUFFIX = ""; const val SHOULD_VERIFY_MAGIC_NUMBER = true
const val SHOULD_VERIFY_CHECKSUM = true
public static final boolean SHOULD_VERIFY_MAGIC_NUMBER = true; const val SHOULD_USE_DICT_VERSION = true
public static final boolean SHOULD_VERIFY_CHECKSUM = true; const val SHOULD_AUTO_CORRECT_USING_NON_WHITE_LISTED_SUGGESTION = false
public static final boolean SHOULD_USE_DICT_VERSION = true; const val SHOULD_REMOVE_PREVIOUSLY_REJECTED_SUGGESTION = true
public static final boolean SHOULD_AUTO_CORRECT_USING_NON_WHITE_LISTED_SUGGESTION = false;
public static final boolean SHOULD_REMOVE_PREVIOUSLY_REJECTED_SUGGESTION = true;
} }

View file

@ -13,14 +13,8 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.dslul.openboard.inputmethod.latin.define
package org.dslul.openboard.inputmethod.latin.define; object JniLibName {
const val JNI_LIB_NAME = "jni_latinime" //public static final String JNI_LIB_NAME2 = "jni_latinimegoogle";
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";
} }

View file

@ -13,30 +13,24 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.dslul.openboard.inputmethod.latin.define
package org.dslul.openboard.inputmethod.latin.define; object ProductionFlags {
const val IS_HARDWARE_KEYBOARD_SUPPORTED = false
public final class ProductionFlags {
private ProductionFlags() {
// This class is not publicly instantiable.
}
public static final boolean IS_HARDWARE_KEYBOARD_SUPPORTED = false;
/** /**
* Include all suggestions from all dictionaries in * 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. * 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:keySpec="!icon/enter_key|!code/key_shift_enter"
latin:parentStyle="defaultEnterKeyStyle" /> latin:parentStyle="defaultEnterKeyStyle" />
</case> </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 <case
latin:imeAction="actionGo" latin:imeAction="actionGo"
> >