Commit cefc8612 authored by Daniel Wolf's avatar Daniel Wolf

@RequiresApi doesn't automatically add @TargetAPI anymore

parent 495743af
package com.frostnerd.dnschanger.fragments;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.DialogInterface;
import android.net.ConnectivityManager;
......@@ -45,6 +46,7 @@ import java.util.List;
* development@frostnerd.com
*/
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public class CurrentNetworksFragment extends Fragment {
private List<DNSProperties> dnsProperties = new ArrayList<>();
......
package com.frostnerd.dnschanger.services.jobs;
import android.annotation.TargetApi;
import android.app.job.JobParameters;
import android.app.job.JobService;
import android.os.Build;
......@@ -17,6 +18,7 @@ import com.frostnerd.dnschanger.util.Preferences;
* <p>
* development@frostnerd.com
*/
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
public class ConnectivityJobAPI21 extends JobService{
private static final String LOG_TAG = "[ConnectivityJobAPI21]";
......
package com.frostnerd.dnschanger.util;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.Notification;
import android.app.NotificationChannel;
......@@ -305,6 +306,7 @@ public final class Util {
}
}
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
private static boolean isJobRunning(@NonNull Context context, @IntRange(from = 0) int jobID){
JobScheduler scheduler = Utils.requireNonNull((JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE));
......
package com.frostnerd.dnschanger.util.dnsproxy;
import android.annotation.TargetApi;
import android.net.VpnService;
import android.os.Build;
import android.os.ParcelFileDescriptor;
......@@ -65,6 +66,7 @@ import de.measite.minidns.record.Data;
* Rather it was used as guidance.
*/
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
@TargetApi(value = Build.VERSION_CODES.LOLLIPOP)
public class DNSTCPProxy extends DNSProxy{
private static final String LOG_TAG = "[DNSTCPProxy]";
private FileDescriptor interruptedDescriptor = null;
......
package com.frostnerd.dnschanger.util.dnsproxy;
import android.annotation.TargetApi;
import android.net.VpnService;
import android.os.Build;
import android.os.ParcelFileDescriptor;
......@@ -61,6 +62,7 @@ import de.measite.minidns.record.Data;
* Rather it was used as guidance.
*/
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public class DNSUDPProxy extends DNSProxy{
private static final String LOG_TAG = "[DNSUDPProxy]";
private FileDescriptor interruptedDescriptor = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment