diff options
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/view/InsetsState.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/java/android/view/InsetsState.java b/core/java/android/view/InsetsState.java index 9bf2e01a6bd1..91e7591193f1 100644 --- a/core/java/android/view/InsetsState.java +++ b/core/java/android/view/InsetsState.java @@ -427,8 +427,7 @@ public class InsetsState implements Parcelable { if (copySources) { for (int i = 0; i < SIZE; i++) { InsetsSource source = other.mSources[i]; - if (source == null) continue; - mSources[i] = new InsetsSource(source); + mSources[i] = source != null ? new InsetsSource(source) : null; } } else { for (int i = 0; i < SIZE; i++) { |
