From 3082e9d37380319e0fef4da87a527344f98b26f5 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Tue, 9 Aug 2016 22:27:44 +0200 Subject: don't run backup during check for updates --- src/main/java/de/pixart/messenger/ui/UpdaterActivity.java | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/main/java/de/pixart/messenger/ui') diff --git a/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java b/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java index fcd4275a4..bed5ed26b 100644 --- a/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java +++ b/src/main/java/de/pixart/messenger/ui/UpdaterActivity.java @@ -29,7 +29,6 @@ import java.io.File; import de.pixart.messenger.Config; import de.pixart.messenger.R; -import de.pixart.messenger.services.ExportLogsService; import de.pixart.messenger.services.UpdaterWebService; public class UpdaterActivity extends Activity { @@ -40,7 +39,6 @@ public class UpdaterActivity extends Activity { private DownloadManager downloadManager; private long downloadReference; private String FileName = "update.apk"; - //broadcast receiver to get notification about ongoing downloads BroadcastReceiver downloadReceiver = new BroadcastReceiver() { @@ -192,11 +190,6 @@ public class UpdaterActivity extends Activity { reponseObj = new JSONObject(responseMessage); boolean success = reponseObj.getBoolean("success"); if (success) { - if (isStoragePermissionGranted()) { - //start backing up database - final Intent startIntent = new Intent(getBaseContext(), ExportLogsService.class); - getBaseContext().startService(startIntent); - } //Overall information about the contents of a package //This corresponds to all of the information collected from AndroidManifest.xml. PackageInfo pInfo = null; -- cgit v1.2.3