From b1f0f4354623e453cfb2f9dd38ef07470dfa6575 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 25 Apr 2018 22:39:36 +0200 Subject: [PATCH] bump targetSdkVersion to 25 We have a lot of work to do to bump to the latest version: #1440 --- app/src/main/AndroidManifest.xml | 2 +- .../fdroid/fdroid/net/ConnectivityMonitorService.java | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 168915be6..5f942aed2 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -6,7 +6,7 @@ + * {@link Build.VERSION_CODES#N Android 7.0} removed + * {@link android.net.ConnectivityManager#CONNECTIVITY_ACTION} so this will + * need to be totally changed to support that. + * + * @see Background Optimizations */ public class ConnectivityMonitorService extends JobIntentService { public static final String TAG = "ConnectivityMonitorServ"; @@ -36,7 +42,9 @@ public class ConnectivityMonitorService extends JobIntentService { /** * Register the {@link BroadcastReceiver} which also starts this - * {@code Service} since it is a sticky broadcast. + * {@code Service} since it is a sticky broadcast. This cannot be + * registered in the manifest, since {@link Build.VERSION_CODES#N Android 7.0} + * makes that not work. */ public static void registerAndStart(Context context) { context.registerReceiver(CONNECTIVITY_RECEIVER, new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION));