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

Commit 98fd6405 authored by Mike Cleron's avatar Mike Cleron Committed by Android (Google) Code Review
Browse files

Merge "Fix NPEs when using the APIs a little oddly." into jb-dev

parents f443c5ea c08dea2a
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) {