Fixed DebSection #909 & Android ASF Console ScrollToEnd

This commit is contained in:
Aigio Liu
2022-01-20 21:04:32 +08:00
parent 316a522721
commit 435ab6e034
3 changed files with 20 additions and 1 deletions
@@ -0,0 +1,17 @@
using Android.Views;
using AndroidX.Core.Widget;
// ReSharper disable once CheckNamespace
namespace System
{
public static class ScrollViewExtensions
{
public static void ScrollToEnd(this NestedScrollView scrollView)
{
scrollView.Post(() =>
{
scrollView.FullScroll((int)FocusSearchDirection.Down);
});
}
}
}
@@ -29,6 +29,7 @@ namespace System.Application.UI.Fragments
{
if (binding == null) return;
binding.tvConsole.Text = value;
binding.scrollView.ScrollToEnd();
}).AddTo(this);
SetConsoleFontSize(ASFSettings.ConsoleFontSize.Value);
+2 -1
View File
@@ -126,7 +126,8 @@ namespace System.Application.Steps
LinuxPackConstants.InstallService,
LinuxPackConstants.ServiceName,
LinuxPackConstants.Prefix,
LinuxPackConstants.DebSection,
//LinuxPackConstants.DebSection,
"utils",
LinuxPackConstants.DebPriority,
LinuxPackConstants.DebHomepage,
LinuxPackConstants.PreInstallScript,