Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 667ca821 authored by Mike Cleron's avatar Mike Cleron Committed by Android Git Automerger
Browse files

am 9454e298: am 98fd6405: Merge "Fix NPEs when using the APIs a little oddly." into jb-dev

* commit '9454e298':
  Fix NPEs when using the APIs a little oddly.
parents 4f329cb7 9454e298
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1367,8 +1367,10 @@ public class Notification implements Parcelable
        public Builder setStyle(Style style) {
            if (mStyle != style) {
                mStyle = style;
                if (mStyle != null) {
                    mStyle.setBuilder(this);
                }
            }
            return this;
        }

@@ -1637,9 +1639,11 @@ public class Notification implements Parcelable
        public void setBuilder(Builder builder) {
            if (mBuilder != builder) {
                mBuilder = builder;
                if (mBuilder != null) {
                    mBuilder.setStyle(this);
                }
            }
        }

        protected void checkBuilder() {
            if (mBuilder == null) {