Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 35d6342d authored by Michael Bestas's avatar Michael Bestas
Browse files

Remove error messages from LoadLocalizedBitmap

In Id38d239254f17eeed5491621865c747a8496ed83 we removed the locale
images since they conflict with our UI changes. However this ended
up causing at least 10 warnings in recovery logs every time recovery
runs. Get rid of the warnings since this function is always supposed
to fail for us.

Change-Id: I9ad6b320739f38bc3bb7a749c50eb17c8feafece
parent b948f784
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -942,17 +942,12 @@ std::unique_ptr<GRSurface> ScreenRecoveryUI::LoadLocalizedBitmap(const std::stri
  if (result == 0) {
    return std::unique_ptr<GRSurface>(surface);
  }
  // TODO(xunchang) create a error code enum to refine the retry condition.
  LOG(WARNING) << "Failed to load bitmap " << filename << " for locale " << locale_ << " (error "
               << result << "). Falling back to use default locale.";

  result = res_create_localized_alpha_surface(filename.c_str(), DEFAULT_LOCALE, &surface);
  if (result == 0) {
    return std::unique_ptr<GRSurface>(surface);
  }

  LOG(ERROR) << "Failed to load bitmap " << filename << " for locale " << DEFAULT_LOCALE
             << " (error " << result << ")";
  return nullptr;
}