mirror of https://github.com/M66B/FairEmail.git
parent
ae51ac3873
commit
82b9ac8add
|
@ -244,8 +244,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
|
|
||||||
private static final ExecutorService executor =
|
private static final ExecutorService executor =
|
||||||
Helper.getBackgroundExecutor(2, "differ");
|
Helper.getBackgroundExecutor(2, "differ");
|
||||||
private static final ExecutorService precompute =
|
|
||||||
Helper.getBackgroundExecutor(1, "precompute");
|
|
||||||
|
|
||||||
// https://github.com/newhouse/url-tracking-stripper
|
// https://github.com/newhouse/url-tracking-stripper
|
||||||
private static final List<String> PARANOID_QUERY = Collections.unmodifiableList(Arrays.asList(
|
private static final List<String> PARANOID_QUERY = Collections.unmodifiableList(Arrays.asList(
|
||||||
|
@ -1813,7 +1811,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
return PrecomputedTextCompat.getTextFuture(
|
return PrecomputedTextCompat.getTextFuture(
|
||||||
builder,
|
builder,
|
||||||
TextViewCompat.getTextMetricsParams(tvBody),
|
TextViewCompat.getTextMetricsParams(tvBody),
|
||||||
precompute)
|
executor)
|
||||||
.get();
|
.get();
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
Log.w(ex);
|
Log.w(ex);
|
||||||
|
|
|
@ -159,7 +159,6 @@ import java.util.Locale;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
import java.util.concurrent.ExecutorService;
|
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import javax.activation.DataHandler;
|
import javax.activation.DataHandler;
|
||||||
|
@ -252,9 +251,6 @@ public class FragmentCompose extends FragmentBase {
|
||||||
private long[] pgpKeyIds;
|
private long[] pgpKeyIds;
|
||||||
private long pgpSignKeyId;
|
private long pgpSignKeyId;
|
||||||
|
|
||||||
private static final ExecutorService precompute =
|
|
||||||
Helper.getBackgroundExecutor(1, "precompute");
|
|
||||||
|
|
||||||
static final int REDUCED_IMAGE_SIZE = 1440; // pixels
|
static final int REDUCED_IMAGE_SIZE = 1440; // pixels
|
||||||
static final int REDUCED_IMAGE_QUALITY = 90; // percent
|
static final int REDUCED_IMAGE_QUALITY = 90; // percent
|
||||||
|
|
||||||
|
@ -4106,7 +4102,7 @@ public class FragmentCompose extends FragmentBase {
|
||||||
precomputed = PrecomputedTextCompat.getTextFuture(
|
precomputed = PrecomputedTextCompat.getTextFuture(
|
||||||
spannedRef,
|
spannedRef,
|
||||||
TextViewCompat.getTextMetricsParams(tvReference),
|
TextViewCompat.getTextMetricsParams(tvReference),
|
||||||
precompute)
|
null)
|
||||||
.get();
|
.get();
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
Log.w(ex);
|
Log.w(ex);
|
||||||
|
|
Loading…
Reference in New Issue