mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 17:58:20 +00:00
replace System.console with Log.e (#390)
This commit is contained in:
parent
be8b89c5cc
commit
a378edabbc
@ -6,6 +6,7 @@ package com.lwansbrough.RCTCamera;
|
||||
|
||||
import android.hardware.Camera;
|
||||
import android.media.CamcorderProfile;
|
||||
import android.util.Log;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
@ -32,9 +33,7 @@ public class RCTCamera {
|
||||
_cameras.put(type, camera);
|
||||
adjustPreviewLayout(type);
|
||||
} catch (Exception e) {
|
||||
if (System.console() != null) {
|
||||
System.console().printf("acquireCameraInstance: %s", e.getLocalizedMessage());
|
||||
}
|
||||
Log.e("RCTCamera", "acquireCameraInstance failed", e);
|
||||
}
|
||||
}
|
||||
return _cameras.get(type);
|
||||
|
Loading…
x
Reference in New Issue
Block a user