From 2922b55e0c9d19340b94941aa210298976d4e9ad Mon Sep 17 00:00:00 2001 From: Ilya Zverev Date: Tue, 4 Aug 2015 19:35:15 +0300 Subject: [PATCH] [fonts] Substitute new font with old to prevent request for downloading --- android/jni/com/mapswithme/maps/DownloadResourcesActivity.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/jni/com/mapswithme/maps/DownloadResourcesActivity.cpp b/android/jni/com/mapswithme/maps/DownloadResourcesActivity.cpp index 4ef2534293..2ac3d39d38 100644 --- a/android/jni/com/mapswithme/maps/DownloadResourcesActivity.cpp +++ b/android/jni/com/mapswithme/maps/DownloadResourcesActivity.cpp @@ -83,6 +83,10 @@ extern "C" } catch (RootException const &) { + // TODO: A hack for a changed font file name. Remove when this stops being relevant. + // This is because we don't want to force update users with the old font (which is good enough) + if (name == "02_droidsans-fallback.ttf") + return NeedToDownload(pl, "02_wqy-microhei.ttf", size); // Size is not checked anyway } return true; }