android/source/build.gradle | 2 +- android/source/gradle/wrapper/gradle-wrapper.properties | 4 ++-- android/source/src/java/org/libreoffice/LOKitTileProvider.java | 9 ++++++++- 3 files changed, 11 insertions(+), 4 deletions(-)
New commits: commit 053d9feec432ca4dff4d85593d9cad0d975388b3 Author: Michael Weghorn <[email protected]> AuthorDate: Wed Jul 17 09:40:13 2024 +0200 Commit: Michael Weghorn <[email protected]> CommitDate: Wed Jul 17 12:13:33 2024 +0200 android: Handle cursor keys In Android Viewer, forward the left/right/up/down keys as such by adding the corresponding mapping to `LOKitTileProvider#getKeyCode`. This allows navigating through the document using those keys e.g. on a hardware keyboard. This addresses this comment from a Google Play Review: > Editing, the cursor doesn't respond to the cursor keys Change-Id: I688e5d0cc1db4f9315f9c9cb2139c22117a210e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170605 Tested-by: Jenkins Reviewed-by: Michael Weghorn <[email protected]> diff --git a/android/source/src/java/org/libreoffice/LOKitTileProvider.java b/android/source/src/java/org/libreoffice/LOKitTileProvider.java index c8a055206dd0..bbdc9456cf4c 100644 --- a/android/source/src/java/org/libreoffice/LOKitTileProvider.java +++ b/android/source/src/java/org/libreoffice/LOKitTileProvider.java @@ -11,7 +11,6 @@ package org.libreoffice; import android.content.Context; import android.graphics.Bitmap; import android.graphics.PointF; -import android.os.Build; import android.print.PrintAttributes; import android.print.PrintDocumentAdapter; import android.print.PrintManager; @@ -630,6 +629,14 @@ class LOKitTileProvider implements TileProvider { switch (keyEvent.getKeyCode()) { case KeyEvent.KEYCODE_DEL: return com.sun.star.awt.Key.BACKSPACE; + case KeyEvent.KEYCODE_DPAD_DOWN: + return com.sun.star.awt.Key.DOWN; + case KeyEvent.KEYCODE_DPAD_LEFT: + return com.sun.star.awt.Key.LEFT; + case KeyEvent.KEYCODE_DPAD_RIGHT: + return com.sun.star.awt.Key.RIGHT; + case KeyEvent.KEYCODE_DPAD_UP: + return com.sun.star.awt.Key.UP; case KeyEvent.KEYCODE_ENTER: return com.sun.star.awt.Key.RETURN; } commit a360543249fb850ec2fa5f26102d5cc270b6b870 Author: Michael Weghorn <[email protected]> AuthorDate: Wed Jul 17 08:54:33 2024 +0200 Commit: Michael Weghorn <[email protected]> CommitDate: Wed Jul 17 12:13:25 2024 +0200 android: Update Android Gradle Plugin to 8.5.1 ... and gradle to 8.7, as suggested by Android Studio. Change-Id: I572c1e0d62a477278fd63e613610d8d422d14a05 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170601 Reviewed-by: Michael Weghorn <[email protected]> Tested-by: Jenkins diff --git a/android/source/build.gradle b/android/source/build.gradle index 8aa3d2dbf9c6..afdd0b00a586 100644 --- a/android/source/build.gradle +++ b/android/source/build.gradle @@ -21,7 +21,7 @@ buildscript { google() } dependencies { - classpath 'com.android.tools.build:gradle:8.4.0' + classpath 'com.android.tools.build:gradle:8.5.1' } } diff --git a/android/source/gradle/wrapper/gradle-wrapper.properties b/android/source/gradle/wrapper/gradle-wrapper.properties index af9c6a996c1d..cce67b04680b 100644 --- a/android/source/gradle/wrapper/gradle-wrapper.properties +++ b/android/source/gradle/wrapper/gradle-wrapper.properties @@ -1,7 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionSha256Sum=85719317abd2112f021d4f41f09ec370534ba288432065f4b477b6a3b652910d -distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip +distributionSha256Sum=194717442575a6f96e1c1befa2c30e9a4fc90f701d7aee33eb879b79e7ff05c0 +distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists
