Loading packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java +8 −4 Original line number Original line Diff line number Diff line Loading @@ -834,11 +834,15 @@ public class NotificationContentView extends FrameLayout { public void updateExpandButtons(boolean expandable) { public void updateExpandButtons(boolean expandable) { mExpandable = expandable; mExpandable = expandable; // if the expanded child has the same height as the collapsed one we hide it. // if the expanded child has the same height as the collapsed one we hide it. if (mExpandedChild != null && mExpandedChild.getHeight() != 0 && if (mExpandedChild != null && mExpandedChild.getHeight() != 0) { ((mIsHeadsUp && mExpandedChild.getHeight() == mHeadsUpChild.getHeight()) || if ((!mIsHeadsUp || mHeadsUpChild == null)) { (!mIsHeadsUp && mExpandedChild.getHeight() == mContractedChild.getHeight()))) { if (mExpandedChild.getHeight() == mContractedChild.getHeight()) { expandable = false; expandable = false; } } } else if (mExpandedChild.getHeight() == mHeadsUpChild.getHeight()) { expandable = false; } } if (mExpandedChild != null) { if (mExpandedChild != null) { mExpandedWrapper.updateExpandability(expandable, mExpandClickListener); mExpandedWrapper.updateExpandability(expandable, mExpandClickListener); } } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java +8 −4 Original line number Original line Diff line number Diff line Loading @@ -834,11 +834,15 @@ public class NotificationContentView extends FrameLayout { public void updateExpandButtons(boolean expandable) { public void updateExpandButtons(boolean expandable) { mExpandable = expandable; mExpandable = expandable; // if the expanded child has the same height as the collapsed one we hide it. // if the expanded child has the same height as the collapsed one we hide it. if (mExpandedChild != null && mExpandedChild.getHeight() != 0 && if (mExpandedChild != null && mExpandedChild.getHeight() != 0) { ((mIsHeadsUp && mExpandedChild.getHeight() == mHeadsUpChild.getHeight()) || if ((!mIsHeadsUp || mHeadsUpChild == null)) { (!mIsHeadsUp && mExpandedChild.getHeight() == mContractedChild.getHeight()))) { if (mExpandedChild.getHeight() == mContractedChild.getHeight()) { expandable = false; expandable = false; } } } else if (mExpandedChild.getHeight() == mHeadsUpChild.getHeight()) { expandable = false; } } if (mExpandedChild != null) { if (mExpandedChild != null) { mExpandedWrapper.updateExpandability(expandable, mExpandClickListener); mExpandedWrapper.updateExpandability(expandable, mExpandClickListener); } } Loading