Fixing incomplete RemoteAction clone

Bug: 77631078
Test: atest CtsAndroidAppTestCases:android.app.cts.RemoteActionTest
Change-Id: Ifd6617baf67993141e2ee85def8fb84c88cbe3e7
This commit is contained in:
Jan Althaus
2018-04-05 17:43:02 +02:00
parent 4d289593f2
commit ab78047aa2

View File

@@ -122,6 +122,7 @@ public final class RemoteAction implements Parcelable {
public RemoteAction clone() {
RemoteAction action = new RemoteAction(mIcon, mTitle, mContentDescription, mActionIntent);
action.setEnabled(mEnabled);
action.setShouldShowIcon(mShouldShowIcon);
return action;
}