diff --git a/dlls/wineandroid.drv/WineActivity.java b/dlls/wineandroid.drv/WineActivity.java index 4cfe8e0a866..8013b3a33c5 100644 --- a/dlls/wineandroid.drv/WineActivity.java +++ b/dlls/wineandroid.drv/WineActivity.java @@ -729,7 +729,7 @@ public boolean dispatchKeyEvent( KeyEvent event ) { Log.i( LOGTAG, String.format( "view key event win %08x action %d keycode %d (%s)", window.hwnd, event.getAction(), event.getKeyCode(), - event.keyCodeToString( event.getKeyCode() )));; + KeyEvent.keyCodeToString( event.getKeyCode() )));; boolean ret = wine_keyboard_event( window.hwnd, event.getAction(), event.getKeyCode(), event.getMetaState() ); if (!ret) ret = super.dispatchKeyEvent(event); diff --git a/dlls/wineandroid.drv/build.gradle.in b/dlls/wineandroid.drv/build.gradle.in index 7271c49e573..3fba34a69fb 100644 --- a/dlls/wineandroid.drv/build.gradle.in +++ b/dlls/wineandroid.drv/build.gradle.in @@ -56,6 +56,11 @@ tasks.whenTaskAdded { t -> } } +tasks.withType(JavaCompile) +{ + options.compilerArgs << "-Xlint" +} + android { compileSdkVersion 25