Skip to content

Commit 152cf88

Browse files
committed
Make setPhraseChoiceRearward match the original design of libchewing (int, not boolean)
Signed-off-by: Hui-Hong You <hiroshi@ghostsinthelab.org>
1 parent e623366 commit 152cf88

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

  • app/src/main

app/src/main/cpp/app.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,13 @@ extern "C" JNIEXPORT void JNICALL
189189
Java_com_miyabi_1hiroshi_app_libchewing_1android_1app_1module_Chewing_setPhraseChoiceRearward(
190190
JNIEnv *env,
191191
jobject,
192-
jboolean boolean,
192+
jint mode,
193193
jlong chewing_ctx_ptr) {
194194
auto *ctx = reinterpret_cast<ChewingContext *>(chewing_ctx_ptr);
195195
__android_log_print(ANDROID_LOG_VERBOSE, LOGTAG,
196-
"Set phrase choice rearward to (%d) from context ptr: %lld", (jint) boolean,
196+
"Set phrase choice rearward to (%d) from context ptr: %lld", (jint) mode,
197197
(long long) ctx);
198-
chewing_set_phraseChoiceRearward(ctx, boolean);
198+
chewing_set_phraseChoiceRearward(ctx, mode);
199199
}
200200

201201
extern "C" JNIEXPORT jboolean JNICALL

app/src/main/java/com/miyabi_hiroshi/app/libchewing_android_app_module/Chewing.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class Chewing {
9696
external fun setEasySymbolInput(mode: Int, chewingCtx: Long = context)
9797
external fun setKBType(type: Int, chewingCtx: Long = context): Int
9898
external fun setMaxChiSymbolLen(length: Int, chewingCtx: Long = context)
99-
external fun setPhraseChoiceRearward(boolean: Boolean, chewingCtx: Long = context)
99+
external fun setPhraseChoiceRearward(mode: Int, chewingCtx: Long = context)
100100
external fun setSelKey(selKeys: IntArray, length: Int, chewingCtx: Long = context)
101101
external fun setSpaceAsSelection(mode: Int, chewingCtx: Long = context)
102102

0 commit comments

Comments
 (0)