Merge branch 'whats-new' into 'master'

Prevent auto scrolling to "What's new" section in app details

See merge request fdroid/fdroidclient!732
This commit is contained in:
Hans-Christoph Steiner 2018-08-16 11:58:35 +00:00
commit 21b10f65c7

View File

@ -437,6 +437,10 @@ public class AppDetailsRecyclerViewAdapter
sbWhatsNew.append(app.whatsNew); sbWhatsNew.append(app.whatsNew);
whatsNewView.setText(sbWhatsNew); whatsNewView.setText(sbWhatsNew);
whatsNewView.setVisibility(View.VISIBLE); whatsNewView.setVisibility(View.VISIBLE);
// Set focus on the header section to prevent auto scrolling to
// the changelog if its content becomes too long to fit on screen.
recyclerView.requestChildFocus(itemView, itemView);
} }
final Spanned desc = Html.fromHtml(app.description, null, new Utils.HtmlTagHandler()); final Spanned desc = Html.fromHtml(app.description, null, new Utils.HtmlTagHandler());
descriptionView.setMovementMethod(LinkMovementMethod.getInstance()); descriptionView.setMovementMethod(LinkMovementMethod.getInstance());