Bug 460859

Summary: Display issues on Android
Product: [Applications] kasts Reporter: Roman Šmakal <schmaker>
Component: generalAssignee: bart
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Android   
OS: Android 10.x   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: 1:1 mode
Portrait mode
Portrait mode
1:1 mode

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)