X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Fasynctasks%2FPopulateBlocklists.java;h=af2bea14001fe28ea2b0f288a36c0f58a0cb96d0;hp=4474285f934d00d423471d5c85e86750b0b18ea1;hb=1243964145685f9496b119e71d776efe0e668d5b;hpb=a4ec41c79f5050006fd4c8dd6454f3ec8a7f99ab diff --git a/app/src/main/java/com/stoutner/privacybrowser/asynctasks/PopulateBlocklists.java b/app/src/main/java/com/stoutner/privacybrowser/asynctasks/PopulateBlocklists.java index 4474285f..af2bea14 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/asynctasks/PopulateBlocklists.java +++ b/app/src/main/java/com/stoutner/privacybrowser/asynctasks/PopulateBlocklists.java @@ -1,20 +1,20 @@ /* - * Copyright © 2019 Soren Stoutner . + * Copyright © 2019,2021-2022 Soren Stoutner . * - * This file is part of Privacy Browser . + * This file is part of Privacy Browser Android . * - * Privacy Browser is free software: you can redistribute it and/or modify + * Privacy Browser Android 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. * - * Privacy Browser is distributed in the hope that it will be useful, + * Privacy Browser Android 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 Privacy Browser. If not, see . + * along with Privacy Browser Android. If not, see . */ package com.stoutner.privacybrowser.asynctasks; @@ -23,11 +23,9 @@ import android.app.Activity; import android.content.Context; import android.os.AsyncTask; import android.view.View; -import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.TextView; -import androidx.appcompat.widget.Toolbar; import androidx.drawerlayout.widget.DrawerLayout; import com.stoutner.privacybrowser.R; @@ -44,11 +42,11 @@ public class PopulateBlocklists extends AsyncTask contextWeakReference; - private WeakReference activityWeakReference; + private final WeakReference contextWeakReference; + private final WeakReference activityWeakReference; // The public constructor. public PopulateBlocklists(Context context, Activity activity) { @@ -74,14 +72,8 @@ public class PopulateBlocklists extends AsyncTask