Merge "Remove auto-boxing during the inflate" into mnc-ub-dev
This commit is contained in:
@@ -409,7 +409,7 @@ public final class BridgeContext extends Context {
|
||||
pushParser(blockParser);
|
||||
return Pair.of(
|
||||
mBridgeInflater.inflate(blockParser, parent, attachToRoot),
|
||||
true);
|
||||
Boolean.TRUE);
|
||||
} finally {
|
||||
popParser();
|
||||
}
|
||||
@@ -447,7 +447,7 @@ public final class BridgeContext extends Context {
|
||||
pushParser(blockParser);
|
||||
return Pair.of(
|
||||
mBridgeInflater.inflate(blockParser, parent, attachToRoot),
|
||||
false);
|
||||
Boolean.FALSE);
|
||||
} finally {
|
||||
popParser();
|
||||
}
|
||||
@@ -470,7 +470,7 @@ public final class BridgeContext extends Context {
|
||||
resource.getName()), null);
|
||||
}
|
||||
|
||||
return Pair.of(null, false);
|
||||
return Pair.of(null, Boolean.FALSE);
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
|
||||
@@ -117,11 +117,11 @@ abstract class CustomBar extends LinearLayout {
|
||||
density = iconLoader.getDensity();
|
||||
String path = iconLoader.getPath();
|
||||
// look for a cached bitmap
|
||||
Bitmap bitmap = Bridge.getCachedBitmap(path, true /*isFramework*/);
|
||||
Bitmap bitmap = Bridge.getCachedBitmap(path, Boolean.TRUE /*isFramework*/);
|
||||
if (bitmap == null) {
|
||||
try {
|
||||
bitmap = Bitmap_Delegate.createBitmap(stream, false /*isMutable*/, density);
|
||||
Bridge.setCachedBitmap(path, bitmap, true /*isFramework*/);
|
||||
Bridge.setCachedBitmap(path, bitmap, Boolean.TRUE /*isFramework*/);
|
||||
} catch (IOException e) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user