OSDN Git Service

use relative positioning for notification actions
authorChris Wren <cwren@android.com>
Tue, 3 Dec 2013 19:31:01 +0000 (14:31 -0500)
committerChris Wren <cwren@android.com>
Thu, 6 Mar 2014 19:55:23 +0000 (14:55 -0500)
Bug: 10531101
Change-Id: Ia1d7cac880f620a9760271344edf920caf0d852d

core/java/android/app/Notification.java

index c63e586..cce6fc4 100644 (file)
@@ -1778,7 +1778,7 @@ public class Notification implements Parcelable
             RemoteViews button = new RemoteViews(mContext.getPackageName(),
                     tombstone ? R.layout.notification_action_tombstone
                               : R.layout.notification_action);
-            button.setTextViewCompoundDrawables(R.id.action0, action.icon, 0, 0, 0);
+            button.setTextViewCompoundDrawablesRelative(R.id.action0, action.icon, 0, 0, 0);
             button.setTextViewText(R.id.action0, action.title);
             if (!tombstone) {
                 button.setOnClickPendingIntent(R.id.action0, action.actionIntent);