mirror of
https://github.com/BeyondDimension/SteamTools.git
synced 2026-10-28 14:08:16 +08:00
Fixed DebSection #909 & Android ASF Console ScrollToEnd
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user