mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Show alt title in santized text
This commit is contained in:
@@ -23,6 +23,7 @@ import android.os.Bundle;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.support.v4.app.Fragment;
|
||||
import android.support.v7.app.AppCompatActivity;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
@@ -35,6 +36,7 @@ import android.widget.ProgressBar;
|
||||
// https://developer.android.com/reference/android/webkit/WebView
|
||||
|
||||
public class FragmentWebView extends Fragment {
|
||||
private String url = null;
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
@@ -68,8 +70,15 @@ public class FragmentWebView extends Fragment {
|
||||
}
|
||||
});
|
||||
|
||||
webview.loadUrl(getArguments().getString("link"));
|
||||
url = getArguments().getString("link");
|
||||
webview.loadUrl(url);
|
||||
|
||||
return view;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
((AppCompatActivity) getActivity()).getSupportActionBar().setSubtitle(url);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user