Skip to content

Commit

Permalink
Lint fix for experimental usage (googlesamples#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 authored Jul 31, 2020
1 parent 61768ba commit f33bb9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import androidx.camera.core.ExperimentalGetImage;
import androidx.camera.core.ImageProxy;
import androidx.exifinterface.media.ExifInterface;

Expand Down Expand Up @@ -78,6 +79,7 @@ public static Bitmap getBitmap(ByteBuffer data, FrameMetadata metadata) {
*/
@RequiresApi(VERSION_CODES.KITKAT)
@Nullable
@ExperimentalGetImage
public static Bitmap getBitmap(ImageProxy image) {
FrameMetadata frameMetadata = new FrameMetadata.Builder()
.setWidth(image.getWidth())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import androidx.camera.core.ExperimentalGetImage;
import androidx.camera.core.ImageProxy;
import androidx.exifinterface.media.ExifInterface;

Expand Down Expand Up @@ -78,6 +79,7 @@ public static Bitmap getBitmap(ByteBuffer data, FrameMetadata metadata) {
*/
@RequiresApi(VERSION_CODES.KITKAT)
@Nullable
@ExperimentalGetImage
public static Bitmap getBitmap(ImageProxy image) {
FrameMetadata frameMetadata = new FrameMetadata.Builder()
.setWidth(image.getWidth())
Expand Down

0 comments on commit f33bb9c

Please sign in to comment.