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

Commit ac85132c authored by Christopher Lais's avatar Christopher Lais
Browse files

Update some commented logging functions

The key types for the caches are now longs, to prevent collisions
between colors and drawables, so update the commented-out logging
functions to reflect this.

Change-Id: I550b67df5f9b00b4d76511343c4716f7ed924120
parent 5e009639
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1761,7 +1761,7 @@ public class Resources {
                } else {
                    synchronized (mTmpValue) {
                        //Log.i(TAG, "Saving cached drawable @ #" +
                        //        Integer.toHexString(key.intValue())
                        //        Long.toHexString(key)
                        //        + " in " + this + ": " + cs);
                        mDrawableCache.put(key, new WeakReference<Drawable.ConstantState>(cs));
                    }
@@ -1779,7 +1779,7 @@ public class Resources {
                Drawable.ConstantState entry = wr.get();
                if (entry != null) {
                    //Log.i(TAG, "Returning cached drawable @ #" +
                    //        Integer.toHexString(((Integer)key).intValue())
                    //        Long.toHexString(key)
                    //        + " in " + this + ": " + entry);
                    return entry.newDrawable(this);
                }
@@ -1863,7 +1863,7 @@ public class Resources {
            } else {
                synchronized (mTmpValue) {
                    //Log.i(TAG, "Saving cached color state list @ #" +
                    //        Integer.toHexString(key.intValue())
                    //        Long.toHexString(key)
                    //        + " in " + this + ": " + csl);
                    mColorStateListCache.put(
                        key, new WeakReference<ColorStateList>(csl));
@@ -1881,7 +1881,7 @@ public class Resources {
                ColorStateList entry = wr.get();
                if (entry != null) {
                    //Log.i(TAG, "Returning cached color state list @ #" +
                    //        Integer.toHexString(((Integer)key).intValue())
                    //        Long.toHexString(key)
                    //        + " in " + this + ": " + entry);
                    return entry;
                }