diff options
| author | TreeHugger Robot <treehugger-gerrit@google.com> | 2016-04-27 22:17:32 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2016-04-27 22:17:33 +0000 |
| commit | 1a101dbc81151942eafaa95762c2e3fd53ceb05f (patch) | |
| tree | d45e9bec1ce0934d7c702af737cf0033bb3b8d38 /core/java/android | |
| parent | fab88eab310c892654506b3ad6e0eae4c0a8649e (diff) | |
| parent | 4c1fcc892e802840e3daad8be9eedb2eb1887ef8 (diff) | |
Merge "Fix remote input view clobbering" into nyc-dev
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); |
