mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-29 11:15:51 +00:00
Fixed webview anchor navigation
This commit is contained in:
parent
39aa3512f5
commit
ce633798a3
2 changed files with 6 additions and 4 deletions
|
@ -1241,7 +1241,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
}
|
||||
});
|
||||
|
||||
printWebView.loadDataWithBaseURL("email://", data[1], "text/html", "UTF-8", null);
|
||||
printWebView.loadDataWithBaseURL(null, data[1], "text/html", "UTF-8", null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -1502,7 +1502,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
ibFull.setVisibility(View.VISIBLE);
|
||||
ibImages.setVisibility(show_images ? View.GONE : View.VISIBLE);
|
||||
|
||||
webView.loadDataWithBaseURL("email://", themeHtml(original.html), "text/html", "UTF-8", null);
|
||||
webView.loadDataWithBaseURL(null, themeHtml(original.html), "text/html", "UTF-8", null);
|
||||
|
||||
pbBody.setVisibility(View.GONE);
|
||||
tvBody.setVisibility(View.GONE);
|
||||
|
@ -1518,7 +1518,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
ibFull.setVisibility(View.VISIBLE);
|
||||
ibImages.setVisibility(show_images ? View.GONE : View.VISIBLE);
|
||||
|
||||
webView.loadDataWithBaseURL("email://", themeHtml(html), "text/html", "UTF-8", null);
|
||||
webView.loadDataWithBaseURL(null, themeHtml(html), "text/html", "UTF-8", null);
|
||||
|
||||
pbBody.setVisibility(View.GONE);
|
||||
tvBody.setVisibility(View.GONE);
|
||||
|
@ -1575,7 +1575,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
settings.setDisplayZoomControls(false);
|
||||
|
||||
String html = properties.getHtml(message.id);
|
||||
webView.loadDataWithBaseURL("email://", html, "text/html", "UTF-8", null);
|
||||
webView.loadDataWithBaseURL(null, html, "text/html", "UTF-8", null);
|
||||
|
||||
final Dialog dialog = new Dialog(context, android.R.style.Theme_Black_NoTitleBar_Fullscreen);
|
||||
dialog.setContentView(webView);
|
||||
|
@ -1905,6 +1905,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
}
|
||||
|
||||
private void onOpenLink(final Uri uri) {
|
||||
Log.i("Opening uri=" + uri);
|
||||
|
||||
if (BuildConfig.APPLICATION_ID.equals(uri.getHost()) && "/activate/".equals(uri.getPath())) {
|
||||
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
|
||||
lbm.sendBroadcast(
|
||||
|
|
Loading…
Reference in a new issue