mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Remove WARNINGs from JNI load path as we can't suppress them (flutter/engine#44348)
Help unblock roll
This commit is contained in:
parent
08b9787733
commit
6e79ecd59d
@ -1193,8 +1193,6 @@ bool PlatformViewAndroid::Register(JNIEnv* env) {
|
||||
"()Landroid/hardware/HardwareBuffer;");
|
||||
|
||||
if (g_image_get_hardware_buffer_method == nullptr) {
|
||||
FML_LOG(WARNING) << "Could not locate getHardwareBuffer on "
|
||||
"android.media.Image";
|
||||
// Continue on as this method may not exist at API <= 29.
|
||||
fml::jni::ClearException(env);
|
||||
}
|
||||
@ -1215,14 +1213,10 @@ bool PlatformViewAndroid::Register(JNIEnv* env) {
|
||||
g_hardware_buffer_close_method =
|
||||
env->GetMethodID(g_hardware_buffer_class->obj(), "close", "()V");
|
||||
if (g_hardware_buffer_close_method == nullptr) {
|
||||
FML_LOG(WARNING)
|
||||
<< "Could not locate close on android.hardware.HardwareBuffer";
|
||||
// Continue on as this class may not exist at API <= 26.
|
||||
fml::jni::ClearException(env);
|
||||
}
|
||||
} else {
|
||||
FML_LOG(WARNING)
|
||||
<< "Could not locate android.hardware.HardwareBuffer class";
|
||||
// Continue on as this class may not exist at API <= 26.
|
||||
fml::jni::ClearException(env);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user