Merge "DirectReply: Fix bugs when replying from HUNs" into nyc-mr1-dev

This commit is contained in:
TreeHugger Robot
2016-08-24 23:07:30 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 2 deletions

View File

@@ -1610,7 +1610,8 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
} }
Entry entry = mNotificationData.get(key); Entry entry = mNotificationData.get(key);
if (entry != null && mRemoteInputController.isRemoteInputActive(entry)) { if (entry != null && mRemoteInputController.isRemoteInputActive(entry)
&& (entry.row != null && !entry.row.isDismissed())) {
mLatestRankingMap = ranking; mLatestRankingMap = ranking;
mRemoteInputEntriesToRemoveOnCollapse.add(entry); mRemoteInputEntriesToRemoveOnCollapse.add(entry);
return; return;
@@ -2535,6 +2536,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
mStatusBarWindowManager.setHeadsUpShowing(false); mStatusBarWindowManager.setHeadsUpShowing(false);
mHeadsUpManager.setHeadsUpGoingAway(false); mHeadsUpManager.setHeadsUpGoingAway(false);
} }
removeRemoteInputEntriesKeptUntilCollapsed();
} }
}); });
} }

View File

@@ -348,7 +348,7 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene
} }
public boolean isActive() { public boolean isActive() {
return mEditText.isFocused(); return mEditText.isFocused() && mEditText.isEnabled();
} }
public void stealFocusFrom(RemoteInputView other) { public void stealFocusFrom(RemoteInputView other) {