Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1416e4d authored by Xavier Ducrohet's avatar Xavier Ducrohet
Browse files

LayoutLib: Misc fix to rendering.

Change-Id: Ia73fab1be3c01e6ce5791973e636e45a0f75ceb6
parent 90c6b7e6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -351,6 +351,7 @@ public class BitmapFactory {
                If the exception happened on open, bm will be null.
                If it happened on close, bm is still valid.
            */
            Bridge.getLog().error(null, e);
        } finally {
            try {
                if (is != null) is.close();
+1 −1
Original line number Diff line number Diff line
@@ -869,7 +869,7 @@ public final class Matrix_Delegate {
             tmpDest = new float[dstIndex + pointCount * 2];
         }

         for (int i = 0 ; i < pointCount ; i++) {
         for (int i = 0 ; i < pointCount * 2 ; i += 2) {
             // just in case we are doing in place, we better put this in temp vars
             float x = mValues[0] * src[i + srcIndex] +
                       mValues[1] * src[i + srcIndex + 1] +
+2 −0
Original line number Diff line number Diff line
@@ -152,6 +152,8 @@ public class LayoutSceneImpl {
            return result;
        }

        Bridge.setLog(mParams.getLog());

        // setup the display Metrics.
        DisplayMetrics metrics = new DisplayMetrics();
        metrics.densityDpi = mParams.getDensity();