Просмотр исходного кода

Use Provider Installer

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 7 лет назад
Родитель
Сommit
682634c6b2

+ 1 - 1
app/src/GPlay/java/com/nextcloud/talk/utils/MagicProviderInstaller.java → app/src/GPlay/java/com/nextcloud/talk/utils/ClosedInterfaceImpl.java

@@ -28,7 +28,7 @@ import com.google.android.gms.security.ProviderInstaller.ProviderInstallListener
 import com.nextcloud.talk.application.NextcloudTalkApplication;
 import com.nextcloud.talk.interfaces.ClosedInterface;
 
-public class MagicProviderInstaller implements ClosedInterface, ProviderInstallListener {
+public class ClosedInterfaceImpl implements ClosedInterface, ProviderInstallListener {
     @Override
     public void ProviderInstallerInstallIfNeededAsync() {
         ProviderInstaller.installIfNeededAsync(NextcloudTalkApplication.getSharedApplication().getApplicationContext(),

+ 1 - 1
app/src/Generic/java/com/nextcloud/talk/utils/MagicProviderInstaller.java → app/src/Generic/java/com/nextcloud/talk/utils/ClosedInterfaceImpl.java

@@ -23,7 +23,7 @@ package com.nextcloud.talk.utils;
 
 import com.nextcloud.talk.interfaces.ClosedInterface;
 
-public class MagicProviderInstaller implements ClosedInterface {
+public class ClosedInterfaceImpl implements ClosedInterface {
     @Override
     public void ProviderInstallerInstallIfNeededAsync() {
         // does absolutely nothing :)

+ 2 - 0
app/src/main/java/com/nextcloud/talk/application/NextcloudTalkApplication.java

@@ -39,6 +39,7 @@ import com.nextcloud.talk.jobs.PushRegistrationJob;
 import com.nextcloud.talk.jobs.creator.MagicJobCreator;
 import com.nextcloud.talk.utils.DeviceUtils;
 import com.nextcloud.talk.utils.DisplayUtils;
+import com.nextcloud.talk.utils.ClosedInterfaceImpl;
 import com.nextcloud.talk.utils.database.user.UserModule;
 import com.nextcloud.talk.webrtc.MagicWebRTCUtils;
 import com.squareup.leakcanary.LeakCanary;
@@ -111,6 +112,7 @@ public class NextcloudTalkApplication extends MultiDexApplication {
     @Override
     public void onCreate() {
         super.onCreate();
+        new ClosedInterfaceImpl().ProviderInstallerInstallIfNeededAsync();
 
         JobManager.create(this).addJobCreator(new MagicJobCreator());