Bug 460859 - Display issues on Android
Summary: Display issues on Android
Status: RESOLVED FIXED
Alias: None
Product: kasts
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Android Android 10.x
: NOR normal
Target Milestone: ---
Assignee: bart
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-22 17:52 UTC by Roman Šmakal
Modified: 2022-12-14 21:02 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
1:1 mode (235.81 KB, image/png)
2022-10-22 17:52 UTC, Roman Šmakal
Details
Portrait mode (147.43 KB, image/png)
2022-10-22 17:52 UTC, Roman Šmakal
Details
Portrait mode (111.17 KB, image/png)
2022-12-14 20:53 UTC, Roman Šmakal
Details
1:1 mode (204.44 KB, image/png)
2022-12-14 21:02 UTC, Roman Šmakal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Šmakal 2022-10-22 17:52:13 UTC
Created attachment 153122 [details]
1:1 mode

There are issues with displaying on Android. First i thought it's problem with unusual aspect ratio of my phone (1:1), but even after switching to portrait mode, issue persists. Screenshots attached

Unihertz Titan - Android 10
App source: F-droid
Comment 1 Roman Šmakal 2022-10-22 17:52:30 UTC
Created attachment 153123 [details]
Portrait mode
Comment 2 bart 2022-12-13 15:49:49 UTC
Git commit 624e0b147f69fc807fc7a8c3c8f7d2eb0fe42b4c by Bart De Vries.
Committed on 13/12/2022 at 15:48.
Pushed by bdevries into branch 'master'.

Prefer portrait orientation when using square window

M  +1    -1    src/qml/main.qml

https://invent.kde.org/plasma-mobile/kasts/commit/624e0b147f69fc807fc7a8c3c8f7d2eb0fe42b4c
Comment 3 bart 2022-12-14 10:34:17 UTC
Looking at the code, I think I might have solved your issue.  I can't reproduce since I don't have a device with a square screen.
Let me know whether this fix worked.
Comment 4 Roman Šmakal 2022-12-14 20:53:53 UTC
Created attachment 154587 [details]
Portrait mode

Portrait mode seems to be fixed
Comment 5 Roman Šmakal 2022-12-14 21:02:55 UTC
Created attachment 154588 [details]
1:1 mode

1:1 mode still looking wierd, but I'm not sure if it's not too time consuming to make the bug worth fixing. 

Btw. for example my device is not actually 1:1 screen, it's resolution is 1430 x 1438. Maybe this parameter could be enough to use portrait displaying even in 1:1 mode (that's what most android apps do on my device)