Repository: godotengine/godot
File: platform/android/export/export_plugin.cpp (C++)

Code before:
void EditorExportPlatformAndroid::_process_launcher_icons(const String &p_file_name, const Ref<Image> &p_source_image, int dimension, Vector<uint8_t> &p_data) {
	Ref<Image> working_image = p_source_image;

	if (p_source_image->get_width() != dimension || p_source_image->get_height() != dimension) {
		working_image = p_source_image->duplicate();
		working_image->resize(dimension, dimension, Image::Interpolation::INTERPOLATE_LANCZOS);
	}

	Vector<uint8_t> png_buffer;
	Error err = PNGDriverCommon::image_to_png(working_image, png_buffer);
	if (err == OK) {
		p_data.resize(png_buffer.size());
		memcpy(p_data.ptrw(), png_buffer.ptr(), p_data.size());
	} else {
		String err_str = String("Failed to convert resized icon (") + p_file_name + ") to png.";
		WARN_PRINT(err_str.utf8().get_data());
	}
}

String EditorExportPlatformAndroid::load_splash_refs(Ref<Image> &splash_image, Ref<Image> &splash_bg_color_image) {
	bool scale_splash = GLOBAL_GET("application/boot_splash/fullsize");
	bool apply_filter = GLOBAL_GET("application/boot_splash/use_filter");
	String project_splash_path = GLOBAL_GET("application/boot_splash/image");

	if (!project_splash_path.is_empty()) {
		splash_image.instantiate();
		print_verbose("Loading splash image: " + project_splash_path);
		const Error err = ImageLoader::load_image(project_splash_path, splash_image);
		if (err) {
			if (OS::get_singleton()->is_stdout_verbose()) {
				print_error("- unable to load splash image from " + project_splash_path + " (" + itos(err) + ")");
			}
			splash_image.unref();
		}
	}

	if (splash_image.is_null()) {
		// Use the default
		print_verbose("Using default splash image.");
		splash_image = Ref<Image>(memnew(Image(boot_splash_png)));
	}

	if (scale_splash) {
		Size2 screen_size = Size2(GLOBAL_GET("display/window/size/viewport_width"), GLOBAL_GET("display/window/size/viewport_height"));
		int width, height;
		if (screen_size.width > screen_size.height) {
			// scale horizontally
			height = screen_size.height;
			width = splash_image->get_width() * screen_size.height / splash_image->get_height();
		} else {
			// scale vertically

Review comment (suggestion):
```suggestion
	// Setup the splash bg color.
```
Per the [comment style](https://docs.godotengine.org/en/latest/contributing/development/code_style_guidelines.html#comment-style-guide). 

Code after:
void EditorExportPlatformAndroid::_process_launcher_icons(const String &p_file_name, const Ref<Image> &p_source_image, int dimension, Vector<uint8_t> &p_data) {
	Ref<Image> working_image = p_source_image;

	if (p_source_image->get_width() != dimension || p_source_image->get_height() != dimension) {
		working_image = p_source_image->duplicate();
		working_image->resize(dimension, dimension, Image::Interpolation::INTERPOLATE_LANCZOS);
	}

	Vector<uint8_t> png_buffer;
	Error err = PNGDriverCommon::image_to_png(working_image, png_buffer);
	if (err == OK) {
		p_data.resize(png_buffer.size());
		memcpy(p_data.ptrw(), png_buffer.ptr(), p_data.size());
	} else {
		String err_str = String("Failed to convert resized icon (") + p_file_name + ") to png.";
		WARN_PRINT(err_str.utf8().get_data());
	}
}

String EditorExportPlatformAndroid::load_splash_refs(Ref<Image> &splash_image, Ref<Image> &splash_bg_color_image) {
	bool scale_splash = GLOBAL_GET("application/boot_splash/fullsize");
	bool apply_filter = GLOBAL_GET("application/boot_splash/use_filter");
	bool show_splash_image = GLOBAL_GET("application/boot_splash/show_image");
	String project_splash_path = GLOBAL_GET("application/boot_splash/image");

	// Setup the splash bg color.
	bool bg_color_valid = false;
	Color bg_color = ProjectSettings::get_singleton()->get("application/boot_splash/bg_color", &bg_color_valid);
	if (!bg_color_valid) {
		bg_color = boot_splash_bg_color;
	}

	if (show_splash_image) {
		if (!project_splash_path.is_empty()) {
			splash_image.instantiate();
			print_verbose("Loading splash image: " + project_splash_path);
			const Error err = ImageLoader::load_image(project_splash_path, splash_image);
			if (err) {
				if (OS::get_singleton()->is_stdout_verbose()) {
					print_error("- unable to load splash image from " + project_splash_path + " (" + itos(err) + ")");
				}
				splash_image.unref();
			}
		}
	} else {
		splash_image.instantiate();
		splash_image->initialize_data(1, 1, false, Image::FORMAT_RGBA8);
		splash_image->set_pixel(0, 0, bg_color);
	}

	if (splash_image.is_null()) {