fix Anti-Features list display in < android-24
Html.fromHtml() strips <li> and <ul> on Android 6.0 and older, but div works
This commit is contained in:
parent
1c7e4aac29
commit
d11c67ead5
@ -31,8 +31,8 @@ import android.util.DisplayMetrics;
|
|||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.webkit.MimeTypeMap;
|
|
||||||
import android.view.ViewTreeObserver;
|
import android.view.ViewTreeObserver;
|
||||||
|
import android.webkit.MimeTypeMap;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
@ -543,11 +543,11 @@ public class AppDetailsRecyclerViewAdapter
|
|||||||
sb.append("<ul>");
|
sb.append("<ul>");
|
||||||
for (String af : app.antiFeatures) {
|
for (String af : app.antiFeatures) {
|
||||||
String afdesc = descAntiFeature(af);
|
String afdesc = descAntiFeature(af);
|
||||||
sb.append("<li><a href=\"https://f-droid.org/wiki/page/Antifeature:")
|
sb.append("<li><div><a href=\"https://f-droid.org/wiki/page/Antifeature:")
|
||||||
.append(af)
|
.append(af)
|
||||||
.append("\">")
|
.append("\">")
|
||||||
.append(afdesc)
|
.append(afdesc)
|
||||||
.append("</a></li>");
|
.append("</a></div></li>");
|
||||||
}
|
}
|
||||||
sb.append("</ul>");
|
sb.append("</ul>");
|
||||||
antiFeaturesView.setText(Html.fromHtml(sb.toString()));
|
antiFeaturesView.setText(Html.fromHtml(sb.toString()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user