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

Hotfix CamcorderProfile deprecated function #27

Merged
merged 1 commit into from
Mar 16, 2022
Merged

Conversation

ghost
Copy link

@ghost ghost commented Mar 7, 2022

When I pulled staging and tried to run it, I got errors saying CamcorderProfile has deprecated 'get' function. I searched around and applied a bug fix that some guy made here.

Error looks similar to this (forgot to screenshot the actual error):
camera/features/resolution/ResolutionFeature.java:135: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_HIGH); ^ camera/features/resolution/ResolutionFeature.java:139: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_2160P); ^ camera/features/resolution/ResolutionFeature.java:143: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_1080P); ^ camera/features/resolution/ResolutionFeature.java:147: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_720P); ^ camera/features/resolution/ResolutionFeature.java:151: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_480P); ^ camera/features/resolution/ResolutionFeature.java:155: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_QVGA); ^ camera/features/resolution/ResolutionFeature.java:159: warning: [deprecation] get(int,int) in CamcorderProfile has been deprecated return CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_LOW);

@ghost ghost requested review from justend29, ChrisRuff and StephenCole19 March 7, 2022 05:03
@StephenCole19 StephenCole19 merged commit db1ac42 into staging Mar 16, 2022
@justend29 justend29 deleted the hotfix-cam branch March 23, 2022 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants