Closed KryptKode closed 1 year ago
it behaves way too bad with a notch and the flashlight/resolution pickers dont work like in OnePlus camera at all yet
Notch handling and photo/video capturing itself seems to work just fine though, good job on that. Ill do more testing later with other devices etc too.
did some more tests, it seems to work well with zooming and clicking for changing focus too. We could maybe change the main Capture button to a basic circle and have some click effect there like at OnePlus Camera. The latest Simple Gallery build from github seems to rotate photos captured with the front camera by 90 degrees if deep zoomable images are enabled, maybe you could take a look at it. If deep zooming is disabled, it works well.
when I was testing the app, toggling front/rear camera, going into the gallery etc and opening other camera apps too, I started getting "An error occurred while obtaining the camera" or so when launching Simple Camera, while opening other camera apps worked. I had to force close Simple Camera to fix it. I cannot reproduce it though, just saying that it can happen.
top and bottom margins seem to be not set properly after first run, when the permissions are just being granted. Afterwards it works well already. I mean that those top 3 icons are behind the notch and the bottom buttons are behind the navigation bar.
if I start recording a video and switch to Photo mode without stopping the recording, I get an error that "video recording failed, try using a different resolution". But the actual recorded video is saved properly.
if I click on the aspect ratio picker and select the currently selected ratio, lets not reload anything to avoid glitches, just close the aspect ratio picker
I found these 3 on my Android 12, but it will likely happen everywhere.
the core seems to work well, I reported mostly some UI glitches and improvements. Once you fix the things listed here, Ill merge the PR and Ill create individual tasks for whatever I find so that it is maintainable.
I will look into them. Thanks
you can also update the target and compile SDK version to 33, we wont need 31 anymore
Hello @tibbi . Please review. I fixed the issues you highlighted except these ones
I couldn't reproduce them
nice, just a couple details.
actually Ill accent the PR as it is getting ridiculously big, will go through the code and tweak some things here and there once you are done with it.
- there is some small left to right animation of the middle 4:3 aspect ratio at extending, when the available aspect ratios show up. I guess it is centered dynamically? Lets place it in the middle instantly. Note that I have 16:9 hidden, guess that is the fullscreen aspect ratio
Yes, it's hidden because the full screen mode is a 16:9
Changes
MySize.isSupported()
; current support is for full,16:9
,4:3
and1:1
of the highest resolutionImageQualityManager
, add a method to get the full-screen resolution which is just the resolution with the largest widthandroid:windowLayoutInDisplayCutoutMode
toshortEdges
in the themeFLAG_LAYOUT_NO_LIMITS
to the window flagsstatusBarHeight
navigationBarHeight
+ view margin