Skip to content

Commit 2d0da33

Browse files
Remove WARNINGs from JNI load path as we can't suppress them (flutter#44348)
Help unblock roll
1 parent ae301ba commit 2d0da33

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

shell/platform/android/platform_view_android_jni_impl.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,8 +1193,6 @@ bool PlatformViewAndroid::Register(JNIEnv* env) {
11931193
"()Landroid/hardware/HardwareBuffer;");
11941194

11951195
if (g_image_get_hardware_buffer_method == nullptr) {
1196-
FML_LOG(WARNING) << "Could not locate getHardwareBuffer on "
1197-
"android.media.Image";
11981196
// Continue on as this method may not exist at API <= 29.
11991197
fml::jni::ClearException(env);
12001198
}
@@ -1215,14 +1213,10 @@ bool PlatformViewAndroid::Register(JNIEnv* env) {
12151213
g_hardware_buffer_close_method =
12161214
env->GetMethodID(g_hardware_buffer_class->obj(), "close", "()V");
12171215
if (g_hardware_buffer_close_method == nullptr) {
1218-
FML_LOG(WARNING)
1219-
<< "Could not locate close on android.hardware.HardwareBuffer";
12201216
// Continue on as this class may not exist at API <= 26.
12211217
fml::jni::ClearException(env);
12221218
}
12231219
} else {
1224-
FML_LOG(WARNING)
1225-
<< "Could not locate android.hardware.HardwareBuffer class";
12261220
// Continue on as this class may not exist at API <= 26.
12271221
fml::jni::ClearException(env);
12281222
}

0 commit comments

Comments
 (0)