Fix broken build

This commit is contained in:
V. Khmelevskiy 2019-02-20 19:58:42 +07:00
parent 6650581653
commit 9e831ea0aa
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,7 @@
module dlangui.platforms.android.imm; module dlangui.platforms.android.imm;
version(Android):
import jni; import jni;
import android.android_native_app_glue; import android.android_native_app_glue;
import android.input; import android.input;
@ -35,7 +37,6 @@ private enum : IMMFlags
* JNI wrapper used with native actitiy to show/hide software keyboard * JNI wrapper used with native actitiy to show/hide software keyboard
* It relies on java reflection and it might be slow. * It relies on java reflection and it might be slow.
*/ */
version(Android)
void showSoftKeyboard(android_app* app, bool shouldShow) void showSoftKeyboard(android_app* app, bool shouldShow)
{ {
// The code is based on https://stackoverflow.com/questions/5864790/how-to-show-the-soft-keyboard-on-native-activity // The code is based on https://stackoverflow.com/questions/5864790/how-to-show-the-soft-keyboard-on-native-activity