1
0
mirror of https://framagit.org/tom79/nitterizeme synced 2025-01-27 07:46:01 +01:00

Some fixes

This commit is contained in:
Thomas 2020-09-06 18:55:06 +02:00
parent 800a1e4316
commit f57b7ef5a3
4 changed files with 8 additions and 8 deletions

View File

@ -31,7 +31,6 @@ import androidx.recyclerview.widget.RecyclerView;
import com.google.android.material.snackbar.Snackbar; import com.google.android.material.snackbar.Snackbar;
import java.lang.ref.WeakReference; import java.lang.ref.WeakReference;
import java.util.ArrayList; import java.util.ArrayList;
@ -41,7 +40,6 @@ import app.fedilab.nitterizeme.entities.Instance;
import app.fedilab.nitterizeme.viewmodels.SearchInstanceVM; import app.fedilab.nitterizeme.viewmodels.SearchInstanceVM;
public class InstanceActivity extends AppCompatActivity { public class InstanceActivity extends AppCompatActivity {
private static String list_for_instances = "https://framagit.org/tom79/fedilab_app/-/blob/master/content/untrackme_instances/payload_2.json"; private static String list_for_instances = "https://framagit.org/tom79/fedilab_app/-/blob/master/content/untrackme_instances/payload_2.json";

View File

@ -56,7 +56,7 @@ public class MainActivity extends AppCompatActivity {
public static final String SET_INVIDIOUS_HOST = "set_invidious_host"; public static final String SET_INVIDIOUS_HOST = "set_invidious_host";
public static final String SET_OSM_HOST = "set_osm_host"; public static final String SET_OSM_HOST = "set_osm_host";
public static final String SET_BIBLIOGRAM_HOST = "set_bibliogram_host"; public static final String SET_BIBLIOGRAM_HOST = "set_bibliogram_host";
@SuppressWarnings("unused") @SuppressWarnings({"unused", "RedundantSuppression"})
public static String TAG = "UntrackMe"; public static String TAG = "UntrackMe";
public static String DEFAULT_NITTER_HOST = "nitter.net"; public static String DEFAULT_NITTER_HOST = "nitter.net";
public static String DEFAULT_INVIDIOUS_HOST = "invidious.snopyta.org"; public static String DEFAULT_INVIDIOUS_HOST = "invidious.snopyta.org";

View File

@ -217,6 +217,7 @@ public class Utils {
String newUrl = null; String newUrl = null;
URL url_; URL url_;
String host = null; String host = null;
url = Utils.remove_tracking_param(url);
try { try {
url_ = new URL(url); url_ = new URL(url);
host = url_.getHost(); host = url_.getHost();

View File

@ -13,6 +13,7 @@ package app.fedilab.nitterizeme.viewmodels;
* *
* You should have received a copy of the GNU General Public License along with UntrackMe; if not, * You should have received a copy of the GNU General Public License along with UntrackMe; if not,
* see <http://www.gnu.org/licenses>. */ * see <http://www.gnu.org/licenses>. */
import android.app.Activity; import android.app.Activity;
import android.content.Context; import android.content.Context;
import android.content.SharedPreferences; import android.content.SharedPreferences;