0002-Bug-28051-Exclude-the-AppUpdater.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From 4a5480df8f23ccc96af794a2194d6a6c33513dc7 Mon Sep 17 00:00:00 2001
  2. From: Matthew Finkel <Matthew.Finkel@gmail.com>
  3. Date: Sat, 24 Nov 2018 04:34:52 +0000
  4. Subject: [PATCH 02/13] Bug 28051 - Exclude the AppUpdater
  5. ---
  6. app/src/main/java/org/torproject/android/OrbotApp.java | 9 ---------
  7. 1 file changed, 9 deletions(-)
  8. diff --git a/app/src/main/java/org/torproject/android/OrbotApp.java b/app/src/main/java/org/torproject/android/OrbotApp.java
  9. index 7279c8e2..291b0456 100644
  10. --- a/app/src/main/java/org/torproject/android/OrbotApp.java
  11. +++ b/app/src/main/java/org/torproject/android/OrbotApp.java
  12. @@ -18,10 +18,6 @@ import android.support.v4.app.NotificationCompat;
  13. import android.util.Log;
  14. import android.widget.RemoteViews;
  15. -import com.github.javiersantos.appupdater.AppUpdater;
  16. -import com.github.javiersantos.appupdater.enums.Display;
  17. -import com.github.javiersantos.appupdater.enums.UpdateFrom;
  18. -
  19. import org.torproject.android.service.OrbotConstants;
  20. import org.torproject.android.service.TorEventHandler;
  21. import org.torproject.android.service.TorService;
  22. @@ -49,11 +45,6 @@ public class OrbotApp extends Application implements OrbotConstants
  23. //Language.setFromPreference(this, "pref_default_locale");
  24. - //check for updates via github, since it is unlikely to be blocked; notify the user of places where upgrades can be found
  25. - new AppUpdater(this)
  26. - .setUpdateFrom(UpdateFrom.JSON)
  27. - .setUpdateJSON("https://raw.githubusercontent.com/n8fr8/orbot/master/update.json")
  28. - .setDisplay(Display.NOTIFICATION).start();
  29. }
  30. @Override
  31. --
  32. 2.17.1