From 05f8d03e96030fe98affa09af484657d12d81d1f Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 1 Jul 2019 23:00:22 +0200 Subject: [PATCH] Added spinner to full message view --- .../eu/faircode/email/AdapterMessage.java | 24 ++++++++++++++++--- app/src/main/res/layout/dialog_webview.xml | 24 +++++++++++++++++++ 2 files changed, 45 insertions(+), 3 deletions(-) create mode 100644 app/src/main/res/layout/dialog_webview.xml diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 9426cdc469..53a0790603 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -2109,6 +2109,7 @@ public class AdapterMessage extends RecyclerView.Adapter() { + @Override + protected void onPreExecute(Bundle args) { + webView.setVisibility(View.GONE); + pbWait.setVisibility(View.VISIBLE); + } + + @Override + protected void onPostExecute(Bundle args) { + pbWait.setVisibility(View.GONE); + } + @Override protected String onExecute(Context context, Bundle args) throws Throwable { long id = args.getLong("id"); @@ -3604,6 +3623,7 @@ public class AdapterMessage extends RecyclerView.Adapter + + + + + +