Loading graphics/java/android/graphics/drawable/NinePatchDrawable.java +8 −1 Original line number Diff line number Diff line Loading @@ -748,7 +748,14 @@ public class NinePatchDrawable extends Drawable { setDither(state.mDither); } // The nine-patch may have been created without a Resources object, in // which case we should try to match the density of the nine patch (if // available). if (res == null && state.mNinePatch != null) { mTargetDensity = state.mNinePatch.getDensity(); } else { mTargetDensity = Drawable.resolveDensity(res, mTargetDensity); } mTintFilter = updateTintFilter(mTintFilter, state.mTint, state.mTintMode); computeBitmapSize(); } Loading Loading
graphics/java/android/graphics/drawable/NinePatchDrawable.java +8 −1 Original line number Diff line number Diff line Loading @@ -748,7 +748,14 @@ public class NinePatchDrawable extends Drawable { setDither(state.mDither); } // The nine-patch may have been created without a Resources object, in // which case we should try to match the density of the nine patch (if // available). if (res == null && state.mNinePatch != null) { mTargetDensity = state.mNinePatch.getDensity(); } else { mTargetDensity = Drawable.resolveDensity(res, mTargetDensity); } mTintFilter = updateTintFilter(mTintFilter, state.mTint, state.mTintMode); computeBitmapSize(); } Loading