diff options
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/app/Notification.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index d7705b9ca830..d2dc7b7a9fc1 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -3351,7 +3351,8 @@ public class Notification implements Parcelable } private void resetStandardTemplateWithActions(RemoteViews big) { - big.setViewVisibility(R.id.actions_container, View.GONE); + // actions_container is only reset when there are no actions to avoid focus issues with + // remote inputs. big.setViewVisibility(R.id.actions, View.GONE); big.removeAllViews(R.id.actions); @@ -3396,6 +3397,8 @@ public class Notification implements Parcelable } big.addView(R.id.actions, button); } + } else { + big.setViewVisibility(R.id.actions_container, View.GONE); } CharSequence[] replyText = mN.extras.getCharSequenceArray(EXTRA_REMOTE_INPUT_HISTORY); |
