Revert "Messaging: Show quick reply choices only on wearable devices"
This reverts commit dffc4fa578.
Reason for revert: Reverting per Taesu Lee's comments - https://android-review.googlesource.com/c/platform/packages/apps/Messaging/+/1259839
@Raman,
This new feature still doesn't work properly.
As we know Luca has been submitted CL:1271087 and CL:1271088 to fix it. But it still has issues.
Change-Id: I2e8eb1fce302b12f3f30b8163da7e749c08733d9
This commit is contained in:
@@ -906,10 +906,6 @@ public class BugleNotifications {
|
|||||||
final NotificationCompat.Action.Builder actionBuilder =
|
final NotificationCompat.Action.Builder actionBuilder =
|
||||||
new NotificationCompat.Action.Builder(R.drawable.ic_wear_reply,
|
new NotificationCompat.Action.Builder(R.drawable.ic_wear_reply,
|
||||||
context.getString(replyLabelRes), replyPendingIntent);
|
context.getString(replyLabelRes), replyPendingIntent);
|
||||||
|
|
||||||
notifBuilder.addAction(actionBuilder.build());
|
|
||||||
|
|
||||||
// Support the action on a wearable device as well
|
|
||||||
final String[] choices = context.getResources().getStringArray(
|
final String[] choices = context.getResources().getStringArray(
|
||||||
R.array.notification_reply_choices);
|
R.array.notification_reply_choices);
|
||||||
final RemoteInput remoteInput = new RemoteInput.Builder(Intent.EXTRA_TEXT).setLabel(
|
final RemoteInput remoteInput = new RemoteInput.Builder(Intent.EXTRA_TEXT).setLabel(
|
||||||
@@ -917,6 +913,9 @@ public class BugleNotifications {
|
|||||||
setChoices(choices)
|
setChoices(choices)
|
||||||
.build();
|
.build();
|
||||||
actionBuilder.addRemoteInput(remoteInput);
|
actionBuilder.addRemoteInput(remoteInput);
|
||||||
|
notifBuilder.addAction(actionBuilder.build());
|
||||||
|
|
||||||
|
// Support the action on a wearable device as well
|
||||||
wearableExtender.addAction(actionBuilder.build());
|
wearableExtender.addAction(actionBuilder.build());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user