Skip to content

Commit

Permalink
Crash fix when notification actions is used for foreground service (M…
Browse files Browse the repository at this point in the history
…aikuB#1714)

Making NotificationAction Serializable to support  notification actions when notification is started as foreground service
  • Loading branch information
arnoldlaishram authored Sep 23, 2022
1 parent e291ba7 commit 00ebd37
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@

import androidx.annotation.Keep;
import androidx.annotation.Nullable;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;

@Keep
public class NotificationAction {
public static class NotificationActionInput {
public class NotificationAction implements Serializable {
public static class NotificationActionInput implements Serializable {

public NotificationActionInput(
@Nullable List<String> choices,
Expand Down

0 comments on commit 00ebd37

Please sign in to comment.