Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Android Desktop Mode #4811

Closed
archerallstars opened this issue Dec 25, 2021 · 4 comments · Fixed by #4945
Closed

Add support for Android Desktop Mode #4811

archerallstars opened this issue Dec 25, 2021 · 4 comments · Fixed by #4945
Labels
T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements X-Needs-Investigation

Comments

@archerallstars
Copy link

Your use case

What would you like to do?

I would like to use Element with Android Desktop Mode features. For instance, an ability to maximized the app's window as shown in the screen recording below:

recording_20211225_022111.mp4

Why would you like to do it?

The desktop mode on Android devices was introduced since Android 10 as a developer option. However, most, if not all, Android 11 devices now make this mode available on differences names. This mode is called Productivity Mode by Lenovo.

147377234-d9022ace-45f2-48ba-ae33-0dfba5eb56c7

My tablet has 11 inches display, so I prefer to use the app like I would on my laptop PC.

How would you like to achieve it?

I would like to have Element app works natively with Android Desktop Mode.

Have you considered any alternatives?

There's no alternative way.

Additional context

No response

@archerallstars archerallstars added the T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements label Dec 25, 2021
@ouchadam ouchadam added X-Needs-Investigation X-Needs-Product Issue needs input from Product team labels Jan 13, 2022
@ouchadam ouchadam removed the X-Needs-Product Issue needs input from Product team label Jan 13, 2022
@ouchadam
Copy link
Contributor

This might be OEM specific, for example I'm able to start a samsung dex desktop session and expand the Element app.

How does the app currently behave in desktop mode?

@archerallstars
Copy link
Author

archerallstars commented Jan 13, 2022

This might be OEM specific, for example I'm able to start a samsung dex desktop session and expand the Element app.

How does the app currently behave in desktop mode?

The maximize button of the app's window is greyed out as shown in the screenshot below:

Screenshot_2022-01-13-14-12-07-801

I'm not sure whether this is an OEM specific issue. However, this mode works fine in many apps, both Google and non-Google apps. For example, Chrome, Facebook, Facebook Messenger, WhatsApp, LINE.

EDIT: AFAIK, Samsung Dex has a force resize window in Dex mode. That could be the reason why Element works in Dex mode.

@ouchadam
Copy link
Contributor

it might be a simple case of enabling https://developer.android.com/guide/topics/manifest/activity-element#resizeableActivity

I'll raise a PR 🤞

@ouchadam
Copy link
Contributor

our CI has generated debug builds with the above flag enabled https://buildkite.com/matrix-dot-org/element-android/builds/5504#21f7023c-b978-4850-b0ad-e9783eeafc6c in case you would like to test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements X-Needs-Investigation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants