mirror of
https://framagit.org/tom79/fedilab-tube
synced 2025-06-05 21:09:11 +02:00
some changes
This commit is contained in:
@ -14,18 +14,14 @@ import android.widget.TextView;
|
||||
import androidx.appcompat.app.ActionBar;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import app.fedilab.fedilabtube.R;
|
||||
|
||||
|
||||
|
||||
public class MastalabWebViewClient extends WebViewClient {
|
||||
|
||||
public List<String> domains = new ArrayList<>();
|
||||
private Activity activity;
|
||||
private int count = 0;
|
||||
|
||||
|
||||
public MastalabWebViewClient(Activity activity) {
|
||||
this.activity = activity;
|
||||
@ -37,11 +33,6 @@ public class MastalabWebViewClient extends WebViewClient {
|
||||
}
|
||||
|
||||
|
||||
public List<String> getDomains() {
|
||||
return this.domains;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean shouldOverrideUrlLoading(WebView view, String url) {
|
||||
if (URLUtil.isNetworkUrl(url)) {
|
||||
@ -56,9 +47,6 @@ public class MastalabWebViewClient extends WebViewClient {
|
||||
@Override
|
||||
public void onPageStarted(WebView view, String url, Bitmap favicon) {
|
||||
super.onPageStarted(view, url, favicon);
|
||||
count = 0;
|
||||
domains = new ArrayList<>();
|
||||
domains.clear();
|
||||
ActionBar actionBar = ((AppCompatActivity) activity).getSupportActionBar();
|
||||
LayoutInflater mInflater = LayoutInflater.from(activity);
|
||||
if (actionBar != null) {
|
||||
|
Reference in New Issue
Block a user