Loading core/java/android/app/Notification.java +9 −3 Original line number Diff line number Diff line Loading @@ -1761,9 +1761,11 @@ public class Notification implements Parcelable if (this.actions != null) { that.actions = new Action[this.actions.length]; for(int i=0; i<this.actions.length; i++) { if ( this.actions[i] != null) { that.actions[i] = this.actions[i].clone(); } } } if (heavy && this.bigContentView != null) { that.bigContentView = this.bigContentView.clone(); Loading Loading @@ -3108,7 +3110,9 @@ public class Notification implements Parcelable * @param action The action to add. */ public Builder addAction(Action action) { if (action != null) { mActions.add(action); } return this; } Loading @@ -3122,8 +3126,10 @@ public class Notification implements Parcelable public Builder setActions(Action... actions) { mActions.clear(); for (int i = 0; i < actions.length; i++) { if (actions[i] != null) { mActions.add(actions[i]); } } return this; } Loading Loading
core/java/android/app/Notification.java +9 −3 Original line number Diff line number Diff line Loading @@ -1761,9 +1761,11 @@ public class Notification implements Parcelable if (this.actions != null) { that.actions = new Action[this.actions.length]; for(int i=0; i<this.actions.length; i++) { if ( this.actions[i] != null) { that.actions[i] = this.actions[i].clone(); } } } if (heavy && this.bigContentView != null) { that.bigContentView = this.bigContentView.clone(); Loading Loading @@ -3108,7 +3110,9 @@ public class Notification implements Parcelable * @param action The action to add. */ public Builder addAction(Action action) { if (action != null) { mActions.add(action); } return this; } Loading @@ -3122,8 +3126,10 @@ public class Notification implements Parcelable public Builder setActions(Action... actions) { mActions.clear(); for (int i = 0; i < actions.length; i++) { if (actions[i] != null) { mActions.add(actions[i]); } } return this; } Loading