diff options
| author | 2015-12-01 13:04:31 -0800 | |
|---|---|---|
| committer | 2015-12-01 13:04:31 -0800 | |
| commit | a89ef23e8c3cf6f84141a5964b05e8961c4cce31 (patch) | |
| tree | b15735d8edb5b16aa95bc5426853867c99e01d42 | |
| parent | 570981d5f1bcd0e5186cc02655254a0606b6ec14 (diff) | |
Fixed a bug where the margins where not updated correctly
When updating a notification, the end margin was not
correctly updating, leading to overlapping text with
the image.
Change-Id: Ica3d21ff0268105d0a8a73527b8dad0225e12d5a
| -rw-r--r-- | core/java/android/widget/RemoteViews.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/widget/RemoteViews.java b/core/java/android/widget/RemoteViews.java index 0ed72e4df02b..0dd803a23d30 100644 --- a/core/java/android/widget/RemoteViews.java +++ b/core/java/android/widget/RemoteViews.java @@ -1666,6 +1666,7 @@ public class RemoteViews implements Parcelable, Filter { ViewGroup.LayoutParams layoutParams = target.getLayoutParams(); if (layoutParams instanceof ViewGroup.MarginLayoutParams) { ((ViewGroup.MarginLayoutParams) layoutParams).setMarginEnd(end); + target.setLayoutParams(layoutParams); } } |