mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 22:56:33 +02:00
Simple task: spanned by value
This commit is contained in:
@@ -25,6 +25,7 @@ import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.os.PowerManager;
|
||||
import android.text.Spanned;
|
||||
import android.view.ContextThemeWrapper;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
@@ -167,6 +168,12 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
|
||||
this.name = name;
|
||||
this.started = new Date().getTime();
|
||||
|
||||
for (String key : args.keySet()) {
|
||||
Object value = args.get(key);
|
||||
if (value instanceof Spanned)
|
||||
args.putCharSequence(key, new SpannableStringBuilderEx((Spanned) value));
|
||||
}
|
||||
|
||||
if (owner instanceof TwoStateOwner)
|
||||
Log.e(new Throwable("SimpleTask/TwoStateOwner"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user