New Module for smartwatches display #18502 #21425
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
From #18502, I decided to make the app usable for
wear os
devices.I've been stalling quite a bit, the project is quite big and I don't have a lot of exp in android dev but here it is.
A heads-up: There's a tons of changes add/edit. Mostly adds. See, I think it's possible to have a separate
res
files when targetingwear os
devices, but I went the easiest way. A new module calledOsmAndWear
.This is not a bait. I known there's
6,316 files changed
butIt's basically a clone of the
OsmAnd
from 54f673d, with the res folder edited.One can use some
diff
tool to check that.Of course, this doesn't fix all the layout. I am sure there are some ui stuff that aren't usable on the watches yet. I believe this pr is the right way to go, in order to make the dev more easier once it's in the pipeline. Having all the src files and stuff, to only focus on res.
Again, I am not sure that the new module is necessary, maybe it can be done without copying almost line by line the other
src
etc. from the mainOsmAnd
.Also, an important thing: I had
disabled swipe to dismiss
in my previous test, to make it easier to navigate on the map. But using the same directives in thetheme
values>styles.xml
in the current state of the app doesn't work. I have "duplicated res error".That being said, can't wait to hear from you whether this is a welcome change or not.
Thanks