[Libreoffice-commits] online.git: android/app

Jan Holesovsky (via logerrit) logerrit at kemper.freedesktop.org
Fri Sep 25 15:52:22 UTC 2020


 android/app/build.gradle                                                         |    1 
 android/app/src/main/java/org/libreoffice/androidapp/LibreOfficeApplication.java |   18 +---------
 2 files changed, 3 insertions(+), 16 deletions(-)

New commits:
commit 109c760c7eb4f94842cb7f502c1cd40349e23929
Author:     Jan Holesovsky <kendy at collabora.com>
AuthorDate: Fri Sep 25 17:49:17 2020 +0200
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Fri Sep 25 17:52:02 2020 +0200

    android: Make sure we are correctly installed...
    
    ...and don't miss any needed split APKs; that can happen when people are
    side-loading the APK, and leads to unpredictable crashes (for which we
    are then blamed).
    
    Change-Id: If3f24e69ab88ec8700190d7e36eaf1b25d3c3e27
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103413
    Tested-by: Jan Holesovsky <kendy at collabora.com>
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/android/app/build.gradle b/android/app/build.gradle
index 3d364a40e..627ac6ca9 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -72,6 +72,7 @@ dependencies {
     implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
     implementation 'androidx.recyclerview:recyclerview:1.0.0'
     implementation 'com.google.android.material:material:1.1.0-alpha04'
+    implementation 'com.google.android.play:core:1.8.0'
 
     //before changing the version please see https://issuetracker.google.com/issues/111662669
     implementation 'androidx.preference:preference:1.1.0-alpha01'
diff --git a/android/app/src/main/java/org/libreoffice/androidapp/LibreOfficeApplication.java b/android/app/src/main/java/org/libreoffice/androidapp/LibreOfficeApplication.java
index 382943ea4..abbe58af6 100644
--- a/android/app/src/main/java/org/libreoffice/androidapp/LibreOfficeApplication.java
+++ b/android/app/src/main/java/org/libreoffice/androidapp/LibreOfficeApplication.java
@@ -9,23 +9,9 @@
 
 package org.libreoffice.androidapp;
 
-import android.app.Application;
-import android.content.Context;
-import android.os.Handler;
+import com.google.android.play.core.missingsplits.MissingSplitsDetectingApplication;
 
-public class LibreOfficeApplication extends Application {
-
-    private static Handler mainHandler;
-
-    public LibreOfficeApplication() {
-    }
-
-    public static Handler getMainHandler() {
-        if (mainHandler == null)
-            mainHandler = new Handler();
-
-        return mainHandler;
-    }
+public class LibreOfficeApplication extends MissingSplitsDetectingApplication {
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list