diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2012-05-07 17:45:44 -0700 |
---|---|---|
committer | Fabrice Di Meglio <fdimeglio@google.com> | 2012-05-07 20:17:38 -0700 |
commit | 30ca5cd11a23f06f2f8eeaa587685450826f800f (patch) | |
tree | 69cdc7dc7653340c0fb27daccf1f82af7a0e45ed /graphics | |
parent | 476b03b0c0d5cae4d1b114c6f80858d59ba36cad (diff) | |
download | frameworks_base-30ca5cd11a23f06f2f8eeaa587685450826f800f.zip frameworks_base-30ca5cd11a23f06f2f8eeaa587685450826f800f.tar.gz frameworks_base-30ca5cd11a23f06f2f8eeaa587685450826f800f.tar.bz2 |
Fix bug #6408393 Character corruption is caused when locale is changed
- free the TextLayoutCache on Locale change
- also free TextLayoutCache when memory is low
Change-Id: I39a37ac8ec3c292cfb1c0eea4bb41ff71897d089
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/Canvas.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/Canvas.java b/graphics/java/android/graphics/Canvas.java index 7e92973..3949afd 100644 --- a/graphics/java/android/graphics/Canvas.java +++ b/graphics/java/android/graphics/Canvas.java @@ -1617,6 +1617,13 @@ public class Canvas { */ public static native void freeCaches(); + /** + * Free up text layout caches + * + * @hide + */ + public static native void freeTextLayoutCaches(); + private static native int initRaster(int nativeBitmapOrZero); private static native void native_setBitmap(int nativeCanvas, int bitmap); private static native int native_saveLayer(int nativeCanvas, RectF bounds, |