DirectReply: Fix bugs when replying from HUNs

am: 9550f2e75c

Change-Id: I0edbb334926eb1147e271e31229279218561332d
This commit is contained in:
Adrian Roos
2016-08-24 23:14:18 +00:00
committed by android-build-merger
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);
if (entry != null && mRemoteInputController.isRemoteInputActive(entry)) {
if (entry != null && mRemoteInputController.isRemoteInputActive(entry)
&& (entry.row != null && !entry.row.isDismissed())) {
mLatestRankingMap = ranking;
mRemoteInputEntriesToRemoveOnCollapse.add(entry);
return;
@@ -2535,6 +2536,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
mStatusBarWindowManager.setHeadsUpShowing(false);
mHeadsUpManager.setHeadsUpGoingAway(false);
}
removeRemoteInputEntriesKeptUntilCollapsed();
}
});
}

View File

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