From da5e464249c0963d8f3302ca9fa7e1619dcce3c7 Mon Sep 17 00:00:00 2001 From: Doug McLain Date: Mon, 15 Nov 2021 16:23:38 -0500 Subject: [PATCH] Add scrollbars to settings/log tabs and fix android USB discovery for multiple serial devices (when using otg hubs for example) --- LogTab.qml | 1 + SettingsTab.qml | 3 ++- android/AndroidManifest.xml | 2 +- android/src/main/java/USBSerialWrapper.java | 19 +++++++++++++++++-- androidserialport.cpp | 4 +++- droidstar.cpp | 4 ++-- serialambe.cpp | 4 ++-- 7 files changed, 28 insertions(+), 9 deletions(-) diff --git a/LogTab.qml b/LogTab.qml index e6462ee..60dcb5c 100644 --- a/LogTab.qml +++ b/LogTab.qml @@ -47,6 +47,7 @@ Item { logTxt.height flickableDirection: Flickable.VerticalFlick clip: true + ScrollBar.vertical: ScrollBar {} TextArea { id: logTxt width: logTextBox.width diff --git a/SettingsTab.qml b/SettingsTab.qml index 22ccb49..244a4dd 100644 --- a/SettingsTab.qml +++ b/SettingsTab.qml @@ -71,13 +71,14 @@ Item { property alias modemNXDNTXLevelEdit: _modemNXDNTXLevelEdit Flickable { + id: flickable anchors.fill: parent contentWidth: parent.width contentHeight: vocoderButton.y + vocoderButton.height + 10 flickableDirection: Flickable.VerticalFlick clip: true - + ScrollBar.vertical: ScrollBar {} Text { id: csLabel x: 10 diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index e17979d..fd8b2a2 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -1,5 +1,5 @@ - +