Merge upstream/dev (22 commits) [upstream-sync]
build / ci-image (push) Successful in 11s
build / build (push) Successful in 26m36s

Conflicts resolved by hand, our fork changes carried over:
- MainActivity.kt: keep the unread widget hooks next to upstream's
  scroll capture (attach and detach both).
- app_settings_screen.dart: upstream wrapped the list in
  MeshSettingsTileTheme; image-message and translation sections stay
  gated on kOnDeviceMl (ML-free build).
- channel_chat_screen.dart: upstream split build() into methods; took
  theirs and re-applied the terminal-theme list padding.
- chat_composer.dart: both imports (terminal_theme, radio_guard).
- mesh_nav_tile.dart: upstream's meshTileTitleStyle, with the smaller
  terminal-theme title kept.

flutter analyze clean, flutter test 1522 passed (CI image, local).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Opus 5.5 committed 2026-11-10 15:30:43 +01:00
commit 185d2aca53
210 files changed
+52066 -5541

No files matched your search

+10 -15
View File
@@ -16,7 +16,7 @@ import '../widgets/empty_state.dart';
import '../widgets/mesh_ui.dart';
import '../helpers/snack_bar_builder.dart';
import '../review_mode/review_mode_entry.dart';
import 'channels_screen.dart';
import '../utils/main_navigation.dart';
import 'tcp_screen.dart';
import 'usb_screen.dart';
@@ -55,9 +55,7 @@ class _ScannerScreenState extends State<ScannerScreen> {
isCurrentRoute &&
!_changedNavigation) {
_changedNavigation = true;
Navigator.of(
context,
).push(MaterialPageRoute(builder: (context) => const ChannelsScreen()));
navigateToMainAfterConnect(context);
}
};
@@ -85,7 +83,14 @@ class _ScannerScreenState extends State<ScannerScreen> {
void dispose() {
_connector.removeListener(_connectionListener);
unawaited(_bluetoothStateSubscription.cancel());
if (!_changedNavigation) {
// Only cancel a Bluetooth connection this screen started; a pending
// auto-reconnect (state disconnected) or a USB/TCP/review link is left
// alone, so peeking at the scanner from the main screens is harmless.
final state = _connector.state;
if (!_changedNavigation &&
_connector.activeTransport == MeshCoreTransportType.bluetooth &&
(state == MeshCoreConnectionState.connecting ||
state == MeshCoreConnectionState.connected)) {
WidgetsBinding.instance.addPostFrameCallback((_) {
unawaited(_connector.disconnect(manual: true));
});
@@ -247,16 +252,6 @@ class _ScannerScreenState extends State<ScannerScreen> {
subtitle: isBluetoothOff
? context.l10n.scanner_bluetoothOffMessage
: null,
action: (isBluetoothOff || isScanning)
? null
: FilledButton.icon(
onPressed: () {
HapticFeedback.lightImpact();
_toggleScan(connector);
},
icon: const Icon(Icons.bluetooth_searching),
label: Text(context.l10n.scanner_scan),
),
);
}