add more Java APIs needed for OctoDroid

This commit is contained in:
Julian Winkler
2024-08-05 17:17:53 +02:00
parent 6c2585ab4b
commit 3e7fdac663
21 changed files with 184 additions and 5 deletions

View File

@@ -1,6 +1,13 @@
package android.text;
import android.graphics.drawable.Drawable;
public class Html {
public static interface ImageGetter {
public Drawable getDrawable(String source);
}
public static Spanned fromHtml(String source) {
return new SpannableString(source.replace("<br/>", "\n")
.replace("<br>", "\n")