1
0
mirror of https://framagit.org/tom79/nitterizeme synced 2025-01-26 15:04:49 +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 java.lang.ref.WeakReference;
import java.util.ArrayList;
@ -41,7 +40,6 @@ import app.fedilab.nitterizeme.entities.Instance;
import app.fedilab.nitterizeme.viewmodels.SearchInstanceVM;
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";

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_OSM_HOST = "set_osm_host";
public static final String SET_BIBLIOGRAM_HOST = "set_bibliogram_host";
@SuppressWarnings("unused")
@SuppressWarnings({"unused", "RedundantSuppression"})
public static String TAG = "UntrackMe";
public static String DEFAULT_NITTER_HOST = "nitter.net";
public static String DEFAULT_INVIDIOUS_HOST = "invidious.snopyta.org";

View File

@ -217,6 +217,7 @@ public class Utils {
String newUrl = null;
URL url_;
String host = null;
url = Utils.remove_tracking_param(url);
try {
url_ = new URL(url);
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,
* see <http://www.gnu.org/licenses>. */
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;