Skip to content

Commit

Permalink
Happy newyear
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Dec 30, 2016
1 parent 596ea0f commit 9db81a3
Show file tree
Hide file tree
Showing 92 changed files with 151 additions and 91 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/eu/faircode/netguard/ActivityDns.java
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.os.AsyncTask;
Expand Down
Expand Up @@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.app.Activity;
Expand Down
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.content.DialogInterface;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/eu/faircode/netguard/ActivityLog.java
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.content.Intent;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/eu/faircode/netguard/ActivityMain.java
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.content.BroadcastReceiver;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/eu/faircode/netguard/ActivityPro.java
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.app.PendingIntent;
Expand Down
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.Manifest;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/eu/faircode/netguard/AdapterAccess.java
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.content.Context;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/eu/faircode/netguard/AdapterDns.java
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.content.Context;
Expand Down
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.content.Context;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/eu/faircode/netguard/AdapterLog.java
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.content.Context;
Expand Down
6 changes: 4 additions & 2 deletions app/src/main/java/eu/faircode/netguard/AdapterRule.java
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.Manifest;
Expand Down Expand Up @@ -73,6 +73,7 @@ public class AdapterRule extends RecyclerView.Adapter<AdapterRule.ViewHolder> im
private static final String TAG = "NetGuard.Adapter";

private Activity context;
private LayoutInflater inflater;
private RecyclerView rv;
private int colorText;
private int colorChanged;
Expand Down Expand Up @@ -225,6 +226,7 @@ public AdapterRule(Activity context) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);

this.context = context;
this.inflater = LayoutInflater.from(context);

if (prefs.getBoolean("dark_theme", false))
colorChanged = Color.argb(128, Color.red(Color.DKGRAY), Color.green(Color.DKGRAY), Color.blue(Color.DKGRAY));
Expand Down Expand Up @@ -839,7 +841,7 @@ protected void publishResults(CharSequence query, FilterResults result) {

@Override
public AdapterRule.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
return new ViewHolder(LayoutInflater.from(context).inflate(R.layout.rule, parent, false));
return new ViewHolder(inflater.inflate(R.layout.rule, parent, false));
}

@Override
Expand Down
19 changes: 19 additions & 0 deletions app/src/main/java/eu/faircode/netguard/Allowed.java
@@ -1,5 +1,24 @@
package eu.faircode.netguard;

/*
This file is part of NetGuard.
NetGuard is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
NetGuard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

public class Allowed {
public String raddr;
public int rport;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/eu/faircode/netguard/ApplicationEx.java
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.app.Application;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/eu/faircode/netguard/DatabaseHelper.java
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.content.ContentValues;
Expand Down
19 changes: 19 additions & 0 deletions app/src/main/java/eu/faircode/netguard/DownloadTask.java
@@ -1,5 +1,24 @@
package eu.faircode.netguard;

/*
This file is part of NetGuard.
NetGuard is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
NetGuard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
Expand Down
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.content.Context;
Expand Down
19 changes: 19 additions & 0 deletions app/src/main/java/eu/faircode/netguard/Forward.java
@@ -1,5 +1,24 @@
package eu.faircode.netguard;

/*
This file is part of NetGuard.
NetGuard is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
NetGuard is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

public class Forward {
public int protocol;
public int dport;
Expand Down
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.os.Bundle;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/eu/faircode/netguard/IAB.java
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.app.PendingIntent;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/eu/faircode/netguard/IPUtil.java
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.util.Log;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/eu/faircode/netguard/Packet.java
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

public class Packet {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/eu/faircode/netguard/Receiver.java
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.app.Notification;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/eu/faircode/netguard/ResourceRecord.java
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import java.text.DateFormat;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/eu/faircode/netguard/Rule.java
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.content.Context;
Expand Down
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.app.IntentService;
Expand Down
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.annotation.TargetApi;
Expand Down
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/


Expand Down
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/


Expand Down
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/


Expand Down
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.content.Context;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/eu/faircode/netguard/Usage.java
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import java.text.DateFormat;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/eu/faircode/netguard/Util.java
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.Manifest;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/eu/faircode/netguard/Version.java
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

public class Version implements Comparable<Version> {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/eu/faircode/netguard/Widget.java
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.app.PendingIntent;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/eu/faircode/netguard/WidgetAdmin.java
Expand Up @@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License
along with NetGuard. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015-2016 by Marcel Bokhorst (M66B)
Copyright 2015-2017 by Marcel Bokhorst (M66B)
*/

import android.app.AlarmManager;
Expand Down

0 comments on commit 9db81a3

Please sign in to comment.