platform_bootable_recovery/minui
xunchang 34723087fe matches_locale no longer accept empty locales in the png file
The legacy png files have an empty line in the end. And the recovery
used to match any missing locale, e.g. "he" with that line and gets an
empty image.

Since the empty image is barely useful, we should just error out and
fall back to the default locale.

This reversed the unit test check added in d17a688525

Bug: 128934634
Test: run locale test with "he" and legacy images, recovery reports
error and doesn't crash even without default locale fall back

Change-Id: Ibdb7dd0b42348de5e392c834cce67ff02be85c24
2019-04-22 15:32:17 -07:00
..
include minui: Managed FDs with smart pointers. 2019-03-11 15:59:09 -07:00
Android.bp recovery uses more shared libraries. 2018-08-08 14:26:27 -07:00
events.cpp minui: Managed FDs with smart pointers. 2019-03-11 15:59:09 -07:00
graphics.cpp minui: Move GRSurface into a class. 2018-10-22 18:18:02 -07:00
graphics.h minui: Move graphics_{adf,drm,fbdev} into classes. 2017-02-10 17:05:15 -08:00
graphics_adf.cpp Use O_CLOEXEC at a few places. 2019-03-01 14:24:41 -08:00
graphics_adf.h minui: GRSurface::Create() computes data_size on its own. 2018-11-26 22:46:19 -08:00
graphics_drm.cpp Use O_CLOEXEC at a few places. 2019-03-01 14:24:41 -08:00
graphics_drm.h minui: GRSurface::Create() computes data_size on its own. 2018-11-26 22:46:19 -08:00
graphics_fbdev.cpp Use O_CLOEXEC at a few places. 2019-03-01 14:24:41 -08:00
graphics_fbdev.h minui: GRSurface::Create() computes data_size on its own. 2018-11-26 22:46:19 -08:00
resources.cpp matches_locale no longer accept empty locales in the png file 2019-04-22 15:32:17 -07:00