brouter icon indicating copy to clipboard operation
brouter copied to clipboard

Download view in portait

Open afischerdev opened this issue 1 year ago • 4 comments

Is it possible that BInstallerActivity not declared as forced landscape in BRouter AndroidManifest.xml ?

It is a bit annoying to have to change orientation to download BRouter files. Doesn't the map work with portrait orientation like all other map apps?

afischerdev avatar May 12 '23 08:05 afischerdev

If you do that without being prepared for the hard way of really doing responsive Design, then this will Just Produce Bug Reports..

abrensch avatar May 12 '23 10:05 abrensch

The map view would work in portait but android recreates the view during after rotation and I'm not sure if we would recreate all required information.

zod avatar May 12 '23 11:05 zod

We will see. It was just a user request that I didn't want to ignore

afischerdev avatar May 12 '23 12:05 afischerdev

android recreates the view during after rotation

This can be avoided with:

<activity
    android:name=".BInstallerActivity"
    android:configChanges="keyboard|keyboardHidden|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
    android:exported="true"
    android:launchMode="singleTask" />

The map is rotated without destroying the activity, example AndroidManifest.xml.

devemux86 avatar May 12 '23 12:05 devemux86