Loading tools/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java +5 −5 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.graphics; import com.android.layoutlib.bridge.Bridge; import com.android.layoutlib.bridge.impl.DelegateManager; import com.android.layoutlib.bridge.impl.FontLoader; Loading Loading @@ -84,7 +85,6 @@ public final class Typeface_Delegate { return delegate.mFonts; } // ---- native methods ---- /*package*/ static synchronized int nativeCreate(String familyName, int style) { Loading Loading @@ -125,13 +125,13 @@ public final class Typeface_Delegate { } /*package*/ static synchronized int nativeCreateFromAsset(AssetManager mgr, String path) { // FIXME throw new UnsupportedOperationException("Native delegate needed: Typeface_Delegate.nativeCreateFromAsset"); Bridge.getLog().fidelityWarning(null, "Typeface.createFromAsset() is not supported.", null); return 0; } /*package*/ static synchronized int nativeCreateFromFile(String path) { // FIXME throw new UnsupportedOperationException("Native delegate needed: Typeface_Delegate.nativeCreateFromFile"); Bridge.getLog().fidelityWarning(null, "Typeface.createFromFile() is not supported.", null); return 0; } /*package*/ static void nativeUnref(int native_instance) { Loading tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java +5 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ import com.android.tools.layoutlib.create.MethodAdapter; import com.android.tools.layoutlib.create.OverrideMethod; import android.graphics.Bitmap; import android.graphics.Typeface; import android.graphics.Typeface_Delegate; import android.os.Looper; Loading Loading @@ -283,6 +284,10 @@ public final class Bridge extends com.android.ide.common.rendering.api.Bridge { @Override public boolean dispose() { BridgeAssetManager.clearSystem(); // dispose of the default typeface. Typeface.sDefaults = null; return true; } Loading tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java +1 −0 Original line number Diff line number Diff line Loading @@ -344,6 +344,7 @@ public class RenderSessionImpl { info.mHasWindowFocus = true; info.mWindowVisibility = View.VISIBLE; info.mInTouchMode = false; // this is so that we can display selections. info.mHardwareAccelerated = false; mViewRoot.dispatchAttachedToWindow(info, 0); // get the background drawable Loading Loading
tools/layoutlib/bridge/src/android/graphics/Typeface_Delegate.java +5 −5 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.graphics; import com.android.layoutlib.bridge.Bridge; import com.android.layoutlib.bridge.impl.DelegateManager; import com.android.layoutlib.bridge.impl.FontLoader; Loading Loading @@ -84,7 +85,6 @@ public final class Typeface_Delegate { return delegate.mFonts; } // ---- native methods ---- /*package*/ static synchronized int nativeCreate(String familyName, int style) { Loading Loading @@ -125,13 +125,13 @@ public final class Typeface_Delegate { } /*package*/ static synchronized int nativeCreateFromAsset(AssetManager mgr, String path) { // FIXME throw new UnsupportedOperationException("Native delegate needed: Typeface_Delegate.nativeCreateFromAsset"); Bridge.getLog().fidelityWarning(null, "Typeface.createFromAsset() is not supported.", null); return 0; } /*package*/ static synchronized int nativeCreateFromFile(String path) { // FIXME throw new UnsupportedOperationException("Native delegate needed: Typeface_Delegate.nativeCreateFromFile"); Bridge.getLog().fidelityWarning(null, "Typeface.createFromFile() is not supported.", null); return 0; } /*package*/ static void nativeUnref(int native_instance) { Loading
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/Bridge.java +5 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ import com.android.tools.layoutlib.create.MethodAdapter; import com.android.tools.layoutlib.create.OverrideMethod; import android.graphics.Bitmap; import android.graphics.Typeface; import android.graphics.Typeface_Delegate; import android.os.Looper; Loading Loading @@ -283,6 +284,10 @@ public final class Bridge extends com.android.ide.common.rendering.api.Bridge { @Override public boolean dispose() { BridgeAssetManager.clearSystem(); // dispose of the default typeface. Typeface.sDefaults = null; return true; } Loading
tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderSessionImpl.java +1 −0 Original line number Diff line number Diff line Loading @@ -344,6 +344,7 @@ public class RenderSessionImpl { info.mHasWindowFocus = true; info.mWindowVisibility = View.VISIBLE; info.mInTouchMode = false; // this is so that we can display selections. info.mHardwareAccelerated = false; mViewRoot.dispatchAttachedToWindow(info, 0); // get the background drawable Loading