Commit graph

199 commits

Author SHA1 Message Date
Manuel Fuhr
952ea803b2 Use LinarProgessIndicator instead of sub-view 2022-04-03 17:53:21 +02:00
Manuel Fuhr
3a2c109ded Remove DownloadService 2022-04-03 17:53:05 +02:00
Manuel Fuhr
ecc4def40c Use WorkManager for downloads 2022-04-03 17:53:03 +02:00
Manuel Fuhr
21abce0139 Hacky way to disable reporting for small files 2022-04-03 17:51:01 +02:00
Manuel Fuhr
d74d0af687 Rewrite DownloadService
Split code into smaller pieces and remove duplication which already
caused confusion (492d79d42e changed wrong
download speed limit)
2022-04-03 17:51:01 +02:00
Manuel Fuhr
a091b07cb6 Reformat DownloadService 2022-04-03 17:51:01 +02:00
Manuel Fuhr
13f5ad0bcf Small cleanup of DownloadService 2022-04-03 17:51:01 +02:00
Manuel Fuhr
db42ae9f33 Always show main dialog (with Download Manager)
It can be confusing when the dialog is shown only sometimes and there is
no indication why the dialog isn't shown. The connection status can also
change after the start of the download manager so it has to handle those
errors anyway.

Closes #389
2022-04-03 17:51:01 +02:00
Manuel Fuhr
c80ad5f03b Update sdk and dependencies 2022-04-03 17:50:13 +02:00
Manuel Fuhr
d92c3beb3e Switch activities to AppCompat and adapt themes
No longer uses fullscreen, statusbar shall be visible to check connection status

Closes #57
2022-04-03 15:56:49 +02:00
afischerdev
f577756433 trackdir and brouter.redirect changes 2022-02-11 15:00:55 +01:00
afischerdev
80d0a30729
Merge pull request #390 from zod/cleanup-binstaller
Use layouts in DownloadManager
2022-01-12 14:54:41 +01:00
Manuel Fuhr
1a3a77de72 Use initial view as minimal zoom level 2022-01-11 21:46:34 +01:00
Manuel Fuhr
31e7c4ebbd Move info and button to own views 2022-01-07 13:03:01 +01:00
Manuel Fuhr
712bff8459 Use GestureDetector to handle touch events 2022-01-07 13:03:01 +01:00
Manuel Fuhr
b8496ffe5e Use View dimensions instead of display dimensions 2022-01-07 13:03:01 +01:00
Manuel Fuhr
50a7c2244f Clear all flags when scanning files 2022-01-07 13:03:01 +01:00
Manuel Fuhr
0eba6cb345 Move all download handling to BInstallerActivity 2022-01-07 13:03:01 +01:00
Manuel Fuhr
7b6fce1481 Move deleting tiles to BInstallerActivity 2022-01-07 13:03:00 +01:00
Manuel Fuhr
da7569b0a0 Use onClick handler to start download 2022-01-07 09:54:11 +01:00
Manuel Fuhr
51ef5c6aad Show download progress in different view 2022-01-07 09:53:39 +01:00
Manuel Fuhr
6045a18a61 Inflate BInstallerView from layout 2022-01-07 09:51:23 +01:00
Manuel Fuhr
89f075fa61 Draw only available segments 2022-01-07 09:51:23 +01:00
Manuel Fuhr
806ae6250e Draw rect using canvas 2022-01-07 09:51:23 +01:00
Manuel Fuhr
e045a732fb Rename DownloadReceiver 2022-01-07 09:51:23 +01:00
Manuel Fuhr
32747a1f6f Remove wakelock from BInstallerActivity 2022-01-07 09:51:23 +01:00
Manuel Fuhr
64a80e763b Merge startInstaller into constructor 2022-01-07 09:51:23 +01:00
Manuel Fuhr
dd7a2fcd98 More Fixes 2022-01-07 09:51:23 +01:00
Manuel Fuhr
de7dd71a94 Apply Quick Fixes suggested by Android Studio 2022-01-07 09:51:23 +01:00
Manuel Fuhr
89ef74f95b Android Studio automatic cleanup 2022-01-07 09:51:23 +01:00
Manuel Fuhr
553f064ce0 Optimize Imports 2022-01-07 09:51:23 +01:00
Manuel Fuhr
236c65d8ed Fix external storage access
- Allow writing on all versions
- Skip migration if BRouter version has already setup basedir
2021-12-30 14:24:03 +01:00
afischerdev
7b460d25d3 add file check for A10 #379 2021-12-28 10:49:56 +01:00
afischerdev
f5c3103dcf update workflow, add check #379 2021-12-27 20:02:13 +01:00
Arndt Brenschede
492d79d42e inreased download speed limit from 4 to 16 mbit/s 2021-12-20 09:52:53 +01:00
Manuel Fuhr
54d5c5e943 Reformat files using Android Studio
android-studio/bin/format.sh -m '*.java' -r brouter-routing-app

To rebase active branches on top of the new master just rebase your
branch onto the commit prior to the reformatting and format every commit
of your branch using (<commit> should be replaced by this commit)

git rebase \
        --strategy-option=theirs \
        --onto <commit> \
        --exec 'format.sh -m "*.java" -r brouter-routing-app' \
        --exec 'git commit --all --no-edit --amend' \
        <commit>~

To ignore this mass edit during git blame see `.git-blame-ignore-revs`
2021-11-20 16:50:23 +01:00
afischerdev
168970ea34 removed option for main folder in Android Q 2021-11-18 10:47:09 +01:00
afischerdev
2794f5376e Cosmetics 2021-11-18 10:44:48 +01:00
afischerdev
7fa59d65db Cosmetics 2021-11-18 10:35:50 +01:00
Manuel Fuhr
c92c289a3f Change profile check to also pass on river.brf 2021-11-18 06:27:21 +01:00
Manuel Fuhr
f29616eefc Don't overwrite built-in profiles 2021-11-18 06:27:21 +01:00
Manuel Fuhr
67bbc3d2ac Move serverconfig.txt handling to own class 2021-11-18 06:27:21 +01:00
Manuel Fuhr
1e594574b5 Improve UI 2021-11-16 16:25:44 +01:00
Manuel Fuhr
6a8f5036b2 Cleanup 2021-11-16 16:13:34 +01:00
Manuel Fuhr
a528630af9 Move profile import to own activity 2021-11-16 16:07:14 +01:00
Manuel Fuhr
a2c5b76105 Import code from @EssBee59
Fixes #362
2021-11-13 06:41:54 +01:00
afischerdev
30b2c5d6aa check rd5 available 2021-11-07 14:24:16 +01:00
afischerdev
78baefcfeb change migration check 2021-11-07 13:56:21 +01:00
afischerdev
83693903ee change import path internal coord reader 2021-11-07 13:40:14 +01:00
afischerdev
c9baec210a
Merge pull request #356 from zod/permission-handling
Improve permission handling
2021-11-07 12:56:32 +01:00
Manuel Fuhr
db77728d4c Always fallback to CoordinateReaderInternal 2021-11-07 11:19:53 +01:00
Manuel Fuhr
dc95984199 Improve detection of sdcard write access
This allows reading waypoints from apps on till devices running API 28
if they store their files in a accessible path (not Android/data). It
even works for devices running API 30 if they installed it as an update.
2021-11-02 17:41:25 +01:00
Manuel Fuhr
12148f6a5d Request runtime permission for WRITE_EXTERNAL_STORAGE
Originally implemented by Erlkoenig90 (#244) but lost during the api
split.
2021-10-23 07:16:20 +02:00
Manuel Fuhr
0e04c1a849 Increase minSdkVersion to 14 and merge implementations
AndroidX needs at least API level 14 (Ice Cream Sandwich) which was
released 10 years ago and should not exclude many devices. Having a
merged tree simplifies the development.
2021-10-23 06:55:17 +02:00
Manuel Fuhr
4d9046d0f5 Update rd5 sizes 2021-10-21 07:53:44 +02:00
afischerdev
b504cd70f3 removed generated brfs 2021-10-05 16:26:41 +02:00
afischerdev
6183f567b7 normalize profiles #312, defaults considerTurnRestrictions #307 2021-09-08 18:41:23 +02:00
afischerdev
b91653a1c8 change targetversion test #312 2021-09-07 13:48:15 +02:00
afischerdev
f6e014f61d android 11 part 3, split api 10/19 2021-08-31 11:29:05 +02:00
afischerdev
83e5fa8083 change connection test #321 2021-08-19 12:29:49 +02:00
afischerdev
6e0db8691c android 11 part 2 2021-08-03 12:49:33 +02:00
afischerdev
9875672907 android 11 part 1 2021-07-24 11:49:29 +02:00
afischerdev
8c5a961011
Merge branch 'master' into cleanup-fileaccess 2021-07-01 11:20:30 +02:00
afischerdev
d0f3644b1f
Merge branch 'abrensch:master' into master 2021-06-29 11:48:37 +02:00
afischerdev
e210b92225
Merge pull request #243 from Erlkoenig90/migrate-gradle
Switch build system to gradle
2021-06-29 11:46:51 +02:00
afischerdev
f59eb0de1e
Merge branch 'abrensch:master' into master 2021-06-24 12:34:38 +02:00
Arndt Brenschede
ca48edda04 new diff file format, fixing empty-microtile-bug 2020-11-14 09:39:10 +01:00
afischerdev
54eb4e7b1e add json export and extra params 2020-06-29 10:06:11 +02:00
afischerdev
98b7b7312c add json export 2020-06-29 10:02:27 +02:00
Niklas Guertler
dbdfd36f88 Cleanup base directory selection, use Context.getExternalFilesDirs and request WRITE_EXTERNAL_STORAGE permission, use AndroidX and raise minSdkVersion to 14. Use File instead of plain Strings for paths in some places, use try-with-resources, and some other small improvements. 2020-05-24 17:59:23 +02:00
Niklas Guertler
72e2e13d07 Switched build system to gradle 2020-05-24 16:46:04 +02:00
Arndt Brenschede
b0410daf89 version 1.6.1 2020-03-01 21:55:34 +01:00
Arndt Brenschede
da044752b5 download manager scaling issues 2020-03-01 13:09:07 +01:00
Arndt Brenschede
4e1cbfe7d5 download manager scaling issues 2020-02-27 08:35:54 +01:00
Arndt Brenschede
f36587a474 download manager scaling issues 2020-02-27 08:31:05 +01:00
Arndt Brenschede
26ad423e24 create readme subdirectories when installing app 2020-02-15 18:28:19 +01:00
Arndt Brenschede
cf5479a261 1.6.0 preparation 2020-02-15 14:36:27 +01:00
Arndt Brenschede
2c73665174 download-manager delete function 2020-01-22 08:34:04 +01:00
Arndt Brenschede
43de4bb6ca rd5 diff progress 2020-01-19 15:22:05 +01:00
Arndt Brenschede
5c9b7fa7bf 1.5.5 versioning 2019-07-30 11:42:22 +02:00
Arndt Brenschede
c1f68e99d0 removed size-sorting of base-dir proposals 2019-07-20 13:26:31 +02:00
Arndt Brenschede
e1f8fce85a base-dir proposals + repeat-timout logik 2019-07-20 13:10:48 +02:00
Arndt Brenschede
a11941cfad result compression for android service interface 2019-07-09 01:15:43 +02:00
Arndt Brenschede
9ccdba149f changed master config file name to simplify 1.4 -> 1.5 migration 2019-07-07 12:44:44 +02:00
Arndt Brenschede
7c33b7e497 delete raw tracks after rd5 download 2019-07-06 12:39:13 +02:00
Arndt Brenschede
a57da730e8 minor changes for 1.5.3 2019-07-06 12:11:38 +02:00
Arndt Brenschede
e78bcc4762 fixed typos in help text 2019-07-06 11:43:00 +02:00
Arndt Brenschede
6a8e6f2093 Android API 23 pain 2019-07-04 20:57:04 +02:00
Arndt Brenschede
f9f08cc0b7 1.5.0 preparations 2019-06-30 17:34:21 +02:00
Arndt Brenschede
02b8202001 patch times and turns (volker) 2019-04-17 12:36:57 +02:00
Arndt Brenschede
19e434facb minor refactoring 2019-04-17 11:33:07 +02:00
Arndt Brenschede
307a50b840 fixed scaling in routing animation 2018-12-13 18:17:28 +01:00
Phyks (Lucas Verney)
d621964863 Radius are now stored in meters, to easily account for different
radiuses on X and Y axes.
2018-12-07 08:58:57 +01:00
Arndt Brenschede
ab2f5e3ae0 Better distance computation (revisited) 2018-12-07 00:45:12 +01:00
Phyks (Lucas Verney)
5a62480bd3 Remove some duplicate codes and magic numbers 2018-12-02 16:00:55 +01:00
Arndt Brenschede
9c5f2d113e 1.4.11 preps 2018-04-02 22:41:55 +02:00
Arndt Brenschede
3e48eea41b added vm forum profiles to distribution 2018-03-07 19:55:11 +01:00
Norbert Truchsess
16259f1f17 set default open nogo-lines for OsmAnd 2018-02-26 16:33:14 +01:00
Norbert Truchsess
41201520c7 read NogoPolygons from OsmAnd Tracks 2018-02-25 20:00:50 +01:00
ntruchsess
f30ba74ac1 add parsing of NogoPolygons to ServerHandler 2018-01-22 23:24:59 +01:00