Skip to content

Commit

Permalink
[Android] getUserBadgedDrawableForDensity signature change.
Browse files Browse the repository at this point in the history
Chromium change:

https://chromium.googlesource.com/chromium/src/+/d42cfe13da276154cb9cfbf3d7b9db9bf006f5ec

commit d42cfe13da276154cb9cfbf3d7b9db9bf006f5ec
Author: Andrew Grieve <agrieve@google.com>
Date:   Wed Sep 25 19:15:58 2019 +0000

    Prevent verification errors from ApiCompatibilityUtils.java

    More hardening against verification failures caused by inlining.

    Also removes some unnecessary passing around of Application context.

    TBR=agrieve # Trivial change to ui/android

    Bug: 1006812
  • Loading branch information
mkarolin committed Nov 27, 2019
1 parent 64df8cb commit d939b12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ private void addWorkProfileBadge(RemoteViews view) {

Drawable inputDrawable = new BitmapDrawable(resources, bitmap);
Drawable outputDrawable = ApiCompatibilityUtils.getUserBadgedDrawableForDensity(
mContext, inputDrawable, null /* badgeLocation */, metrics.densityDpi);
inputDrawable, null /* badgeLocation */, metrics.densityDpi);

// The input bitmap is immutable, so the output drawable will be a different instance from
// the input drawable if the work profile badge was applied.
Expand Down

0 comments on commit d939b12

Please sign in to comment.