diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2015-11-19 20:47:26 +0000 |
---|---|---|
committer | Deepanshu Gupta <deepanshu@google.com> | 2015-11-19 20:47:26 +0000 |
commit | 65a834980cdbb9407a3f27e48cd0a8c472182cd6 (patch) | |
tree | 2e6a99e0469c585168bc78389fb513718cc9aa60 | |
parent | 631c2ffd6ff1bfa7463d29a39a7ee74be019b3f9 (diff) | |
download | frameworks_base-65a834980cdbb9407a3f27e48cd0a8c472182cd6.zip frameworks_base-65a834980cdbb9407a3f27e48cd0a8c472182cd6.tar.gz frameworks_base-65a834980cdbb9407a3f27e48cd0a8c472182cd6.tar.bz2 |
Revert "Update StaticLayout_Delegate to use new nLoadHyphenator"
This reverts commit 631c2ffd6ff1bfa7463d29a39a7ee74be019b3f9.
The revert is only for cherry-pick back to mnc-sdk-release.
Change-Id: I42cb392528b7890b58d689c732f90c3b9ba5f74c
-rw-r--r-- | tools/layoutlib/bridge/src/android/text/Hyphenator_Delegate.java | 5 | ||||
-rw-r--r-- | tools/layoutlib/bridge/src/android/text/StaticLayout_Delegate.java | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/tools/layoutlib/bridge/src/android/text/Hyphenator_Delegate.java b/tools/layoutlib/bridge/src/android/text/Hyphenator_Delegate.java index 44ce731..5a59597 100644 --- a/tools/layoutlib/bridge/src/android/text/Hyphenator_Delegate.java +++ b/tools/layoutlib/bridge/src/android/text/Hyphenator_Delegate.java @@ -20,10 +20,9 @@ import com.android.layoutlib.bridge.impl.DelegateManager; import com.android.tools.layoutlib.annotations.LayoutlibDelegate; import java.io.File; -import java.nio.ByteBuffer; /** - * Delegate that overrides implementation for certain methods in {@link android.text.Hyphenator} + * Delegate that overrides implementation for certain methods in {@link android.text.StaticLayout} * <p/> * Through the layoutlib_create tool, selected methods of StaticLayout have been replaced * by calls to methods of the same name in this delegate class. @@ -39,7 +38,7 @@ public class Hyphenator_Delegate { return null; } - /*package*/ static long loadHyphenator(ByteBuffer buf, int offset) { + /*package*/ static long loadHyphenator(String patternData) { return sDelegateManager.addNewDelegate(new Hyphenator_Delegate()); } } diff --git a/tools/layoutlib/bridge/src/android/text/StaticLayout_Delegate.java b/tools/layoutlib/bridge/src/android/text/StaticLayout_Delegate.java index 65c0a07..1b0ba51 100644 --- a/tools/layoutlib/bridge/src/android/text/StaticLayout_Delegate.java +++ b/tools/layoutlib/bridge/src/android/text/StaticLayout_Delegate.java @@ -13,7 +13,6 @@ import android.icu.util.ULocale; import android.text.Primitive.PrimitiveType; import android.text.StaticLayout.LineBreaks; -import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -53,8 +52,8 @@ public class StaticLayout_Delegate { } @LayoutlibDelegate - /*package*/ static long nLoadHyphenator(ByteBuffer buf, int offset) { - return Hyphenator_Delegate.loadHyphenator(buf, offset); + /*package*/ static long nLoadHyphenator(String patternData) { + return Hyphenator_Delegate.loadHyphenator(patternData); } @LayoutlibDelegate |