Loading packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java +15 −5 Original line number Original line Diff line number Diff line Loading @@ -277,15 +277,25 @@ public class NotificationContentView extends FrameLayout { mContractedChild.animate().cancel(); mContractedChild.animate().cancel(); removeView(mContractedChild); removeView(mContractedChild); } } mPreviousExpandedRemoteInputIntent = mPreviousExpandedRemoteInputIntent = null; mExpandedRemoteInput != null ? mExpandedRemoteInput.getPendingIntent() : null; if (mExpandedRemoteInput != null) { mExpandedRemoteInput.onNotificationUpdateOrReset(); if (mExpandedRemoteInput.isActive()) { mPreviousExpandedRemoteInputIntent = mExpandedRemoteInput.getPendingIntent(); } } if (mExpandedChild != null) { if (mExpandedChild != null) { mExpandedChild.animate().cancel(); mExpandedChild.animate().cancel(); removeView(mExpandedChild); removeView(mExpandedChild); mExpandedRemoteInput = null; mExpandedRemoteInput = null; } } mPreviousHeadsUpRemoteInputIntent = mPreviousHeadsUpRemoteInputIntent = null; mHeadsUpRemoteInput != null ? mHeadsUpRemoteInput.getPendingIntent() : null; if (mHeadsUpRemoteInput != null) { mHeadsUpRemoteInput.onNotificationUpdateOrReset(); if (mHeadsUpRemoteInput.isActive()) { mPreviousHeadsUpRemoteInputIntent = mHeadsUpRemoteInput.getPendingIntent(); } } if (mHeadsUpChild != null) { if (mHeadsUpChild != null) { mHeadsUpChild.animate().cancel(); mHeadsUpChild.animate().cancel(); removeView(mHeadsUpChild); removeView(mHeadsUpChild); Loading Loading @@ -910,7 +920,7 @@ public class NotificationContentView extends FrameLayout { view.findViewWithTag(RemoteInputView.VIEW_TAG); view.findViewWithTag(RemoteInputView.VIEW_TAG); if (existing != null) { if (existing != null) { existing.onNotificationUpdate(); existing.onNotificationUpdateOrReset(); } } if (existing == null && hasRemoteInput) { if (existing == null && hasRemoteInput) { Loading packages/SystemUI/src/com/android/systemui/statusbar/policy/RemoteInputView.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -227,7 +227,7 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene updateSendButton(); updateSendButton(); } } public void onNotificationUpdate() { public void onNotificationUpdateOrReset() { boolean sending = mProgressBar.getVisibility() == VISIBLE; boolean sending = mProgressBar.getVisibility() == VISIBLE; if (sending) { if (sending) { Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/NotificationContentView.java +15 −5 Original line number Original line Diff line number Diff line Loading @@ -277,15 +277,25 @@ public class NotificationContentView extends FrameLayout { mContractedChild.animate().cancel(); mContractedChild.animate().cancel(); removeView(mContractedChild); removeView(mContractedChild); } } mPreviousExpandedRemoteInputIntent = mPreviousExpandedRemoteInputIntent = null; mExpandedRemoteInput != null ? mExpandedRemoteInput.getPendingIntent() : null; if (mExpandedRemoteInput != null) { mExpandedRemoteInput.onNotificationUpdateOrReset(); if (mExpandedRemoteInput.isActive()) { mPreviousExpandedRemoteInputIntent = mExpandedRemoteInput.getPendingIntent(); } } if (mExpandedChild != null) { if (mExpandedChild != null) { mExpandedChild.animate().cancel(); mExpandedChild.animate().cancel(); removeView(mExpandedChild); removeView(mExpandedChild); mExpandedRemoteInput = null; mExpandedRemoteInput = null; } } mPreviousHeadsUpRemoteInputIntent = mPreviousHeadsUpRemoteInputIntent = null; mHeadsUpRemoteInput != null ? mHeadsUpRemoteInput.getPendingIntent() : null; if (mHeadsUpRemoteInput != null) { mHeadsUpRemoteInput.onNotificationUpdateOrReset(); if (mHeadsUpRemoteInput.isActive()) { mPreviousHeadsUpRemoteInputIntent = mHeadsUpRemoteInput.getPendingIntent(); } } if (mHeadsUpChild != null) { if (mHeadsUpChild != null) { mHeadsUpChild.animate().cancel(); mHeadsUpChild.animate().cancel(); removeView(mHeadsUpChild); removeView(mHeadsUpChild); Loading Loading @@ -910,7 +920,7 @@ public class NotificationContentView extends FrameLayout { view.findViewWithTag(RemoteInputView.VIEW_TAG); view.findViewWithTag(RemoteInputView.VIEW_TAG); if (existing != null) { if (existing != null) { existing.onNotificationUpdate(); existing.onNotificationUpdateOrReset(); } } if (existing == null && hasRemoteInput) { if (existing == null && hasRemoteInput) { Loading
packages/SystemUI/src/com/android/systemui/statusbar/policy/RemoteInputView.java +1 −1 Original line number Original line Diff line number Diff line Loading @@ -227,7 +227,7 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene updateSendButton(); updateSendButton(); } } public void onNotificationUpdate() { public void onNotificationUpdateOrReset() { boolean sending = mProgressBar.getVisibility() == VISIBLE; boolean sending = mProgressBar.getVisibility() == VISIBLE; if (sending) { if (sending) { Loading