Skip to content

Commit da7270b

Browse files
committed
Fix returning type of getPhraseChoiceRearward()
Signed-off-by: Hui-Hong You <hiroshi@ghostsinthelab.org>
1 parent 096ba16 commit da7270b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

  • app/src/main

app/src/main/cpp/app.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,13 @@ Java_com_miyabi_1hiroshi_app_libchewing_1android_1app_1module_Chewing_setPhraseC
198198
chewing_set_phraseChoiceRearward(ctx, mode);
199199
}
200200

201-
extern "C" JNIEXPORT jboolean JNICALL
201+
extern "C" JNIEXPORT jint JNICALL
202202
Java_com_miyabi_1hiroshi_app_libchewing_1android_1app_1module_Chewing_getPhraseChoiceRearward(
203203
JNIEnv *env,
204204
jobject,
205205
jlong chewing_ctx_ptr) {
206206
auto *ctx = reinterpret_cast<ChewingContext *>(chewing_ctx_ptr);
207-
jboolean phrase_choice_rearward;
207+
jint phrase_choice_rearward;
208208
phrase_choice_rearward = chewing_get_phraseChoiceRearward(ctx);
209209
return phrase_choice_rearward;
210210
}

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
@@ -77,7 +77,7 @@ class Chewing {
7777
external fun getKBString(chewingCtx: Long = context): String
7878
external fun getKBType(chewingCtx: Long = context): Int
7979
external fun getMaxChiSymbolLen(chewingCtx: Long = context): Int
80-
external fun getPhraseChoiceRearward(chewingCtx: Long = context): Boolean
80+
external fun getPhraseChoiceRearward(chewingCtx: Long = context): Int
8181
external fun getSelKey(chewingCtx: Long = context): IntArray
8282
external fun getSpaceAsSelection(chewingCtx: Long = context): Int
8383
external fun handleBackspace(chewingCtx: Long = context)

0 commit comments

Comments
 (0)