Skip to content

Commit

Permalink
Cleanup, address #503
Browse files Browse the repository at this point in the history
  • Loading branch information
kebekus committed Mar 4, 2025
1 parent ae5ccc5 commit cbf2f3d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# Changelog

## [2.32.14] - 2025-03-xx
## [2.32.14] - 2025-03-04

### Fixed
- Fix problem with the file picker dialog on Android, where files from external
sources were not opened. (#491)

### Changed
- Increase distance threshold where aircraft is considered to be on-route from 3
to 5 NM. (#503)


## [2.32.13] - 2025-03-02

Expand Down
4 changes: 2 additions & 2 deletions src/navigation/Leg.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/***************************************************************************
* Copyright (C) 2019-2022 by Stefan Kebekus *
* Copyright (C) 2019-2025 by Stefan Kebekus *
* [email protected] *
* *
* This program is free software; you can redistribute it and/or modify *
Expand Down Expand Up @@ -219,7 +219,7 @@ class Leg {
//

// Width of the leg. A position is considered near the leg if the distance is less.
static constexpr Units::Distance nearThreshold = Units::Distance::fromNM(3.0);
static constexpr Units::Distance nearThreshold = Units::Distance::fromNM(5.0);

private:
// Necessary data for computation of wind triangle?
Expand Down
2 changes: 1 addition & 1 deletion src/platform/FileExchange_Android.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/***************************************************************************
* Copyright (C) 2019-2024 by Stefan Kebekus *
* Copyright (C) 2019-2025 by Stefan Kebekus *
* [email protected] *
* *
* This program is free software; you can redistribute it and/or modify *
Expand Down
16 changes: 13 additions & 3 deletions src/platform/FileExchange_Android.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/***************************************************************************
* Copyright (C) 2019-2023 by Stefan Kebekus *
* Copyright (C) 2019-2025 by Stefan Kebekus *
* [email protected] *
* *
* This program is free software; you can redistribute it and/or modify *
Expand Down Expand Up @@ -72,8 +72,18 @@ class FileExchange : public Platform::FileExchange_Abstract
*/
QString viewContent(const QByteArray& content, const QString& mimeType, const QString& fileNameTemplate) override;

#warning
Q_INVOKABLE static void openFilePicker(const QString& mime);
/*! \brief Opens the native Android file picker
*
* This method facilitates a workaround against
* https://bugreports.qt.io/browse/QTBUG-118154 which renders the file
* dialog effectively unusable under Android. This method returns
* immediately. It display the file picker on top of the app. Once a file
* is chosen, the standart import mechanism is invoked.
*
* @param mimeType A space-separated list of mime types for that that
* should be selectable
*/
Q_INVOKABLE static void openFilePicker(const QString& mimeType);

public slots:
/*! \brief Implements pure virtual method from FileExchange_Abstract */
Expand Down

0 comments on commit cbf2f3d

Please sign in to comment.