Enlarge wifi signal icon from 24dp to 32dp for header view
Bug: 129413562 Test: manual test Change-Id: I50a27ac25e5ae42530736bb7c019485a51d707ba
This commit is contained in:
@@ -977,7 +977,10 @@ public final class Utils extends com.android.settingslib.Utils {
|
||||
return IconCompat.createWithBitmap(bitmap);
|
||||
}
|
||||
|
||||
private static Bitmap createBitmap(Drawable drawable, int width, int height) {
|
||||
/**
|
||||
* Creates a drawable with specified width and height.
|
||||
*/
|
||||
public static Bitmap createBitmap(Drawable drawable, int width, int height) {
|
||||
final Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
|
||||
final Canvas canvas = new Canvas(bitmap);
|
||||
drawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight());
|
||||
|
Reference in New Issue
Block a user