Compare commits

...

3 Commits

Author SHA1 Message Date
Dennis Guse 6566904906 Release: v4.26.1 2026-02-25 07:34:12 +01:00
qwjyh 1d0e8f59b7 Translated using Weblate (Japanese)
Currently translated at 48.8% (266 of 545 strings)

Translation: OpenTracks/opentracks.src-main-res-values-strings-xml--main
Translate-URL: https://translate.codeberg.org/projects/opentracks/opentracks-src-main-res-values-strings-xml-main/ja/
2026-02-25 06:29:29 +00:00
Dennis Guse be7987f88a Bugfix: crash when exporting zero tracks.
Fixes #2285
2026-02-21 21:45:00 +01:00
4 changed files with 30 additions and 7 deletions
+2 -2
View File
@@ -47,8 +47,8 @@ android {
defaultConfig {
applicationId 'de.dennisguse.opentracks'
versionCode 6603
versionName "v4.26.0"
versionCode 6609
versionName "v4.26.1"
buildConfigField "String", "VERSION_NAME_FULL", "\"${getVersionName()}\""
@@ -0,0 +1,6 @@
v4.26.1: OpenTracks
Bugfix:
- Crash when deleting a UI layout
- Crash when heartrate sensor data could not be decoded
- Crash when exporting zero tracks
@@ -167,8 +167,11 @@ public class ExportActivity extends AbstractActivity {
new Thread(() -> {
directoryFiles = ExportUtils.getAllFiles(ExportActivity.this, documentFile.getUri());
runOnUiThread(() -> {
createExportTasks(allInOneFile);
nextExport(null);
if (createExportTasks(allInOneFile)) {
nextExport(null);
} else {
onExportEnded();
}
});
}).start();
} else {
@@ -217,8 +220,12 @@ public class ExportActivity extends AbstractActivity {
exportTasks.clear();
}
private void createExportTasks(boolean allInOneFile) {
private boolean createExportTasks(boolean allInOneFile) {
List<Track> tracks = contentProviderUtils.getTracks();
if (tracks.isEmpty()) {
return false;
}
exportTasks = new ArrayList<>();
if (allInOneFile) {
String filename = "OpenTracks-Backup";
@@ -227,6 +234,7 @@ public class ExportActivity extends AbstractActivity {
exportTasks.addAll(tracks.stream().map(it -> new ExportTask(null, trackFileFormat, List.of(it.id()))).toList());
}
trackExportTotalCount = exportTasks.size();
return true;
}
/**
@@ -391,7 +399,7 @@ public class ExportActivity extends AbstractActivity {
/**
* Try to resolve the conflict if user gave the info needed.
* Otherwise shows the buttons and views needed to gives the user the possibility of take a decision.
* Otherwise, shows the buttons and views needed to gives the user the possibility of take a decision.
*
* @return true if it could resolve the conflict or false otherwise.
*/
+10 -1
View File
@@ -304,4 +304,13 @@ limitations under the License.
<string name="waypoint_type_waypoint">地点</string>
<string name="help_feature_content">"* GPS トラックを作成します\n\n\n\n * 心拍センサーを使用します (Bluetooth LE のみ)\n\n\n\n * 音声アナウンス(時間または距離)\n\n\n\n * マーカーの作成 (写真を含む)\n\n\n\n * 完全にオフラインで動作します\n\n\n\n * 地図上にトラックを表示します (下記を参照)"</string>
<string name="help_data_google_play_services_content">いいえ</string>
</resources>
<string name="about_history">OpenTracksは<a href="https://code.google.com/archive/p/mytracks/"><i>GoogleのMyTracks</i></a> (2016に開発停止)のフォークです。</string>
<string name="help_feature_title">OpenTracks には以下の機能があります:</string>
<string name="activity_type_escooter">電動スクーター</string>
<string name="activity_type_kickscooter">スクーター</string>
<string name="generic_overwrite">上書き</string>
<string name="generic_skip">スキップ</string>
<string name="import_progress_summary_ok_msg">インポート完了</string>
<string name="import_progress_summary_exists_msg">既に存在しています</string>
<string name="help_track_map_content">小さな地図のアイコンを使います.\n a) (live updates) <a href="https://codeberg.org/OpenTracksApp/OSMDashboard">OSMDashboard</a>をインストールして下さい。 <a href="https://www.openstreetmap.org">OpenStreetMap</a> を利用したオンラインまたはオフラインの地図を使用できるようになります。\n実際、OSMDashbordは (一時的に保存された) 表示するトラッキングデータにだけアクセスする独立したアプリケーションです。\n b) 一般的な地図アプリケーションを使用 (e.g., <a href="http://osmand.net/">OsmAnd</a> and <a href="https://maps.me/">MAPS.ME</a>) 。 KMZフォーマットをサポートしている必要があります (位置及びタイムスタンプのみを含む)。 加えて、 MIME <i>application/vnd.google-earth.kmz</i> の <i>ACTION_VIEW</i> をサポートしている必要もあります。</string>
</resources>