@@ -36,7 +36,6 @@ public class IosNotification extends PlatformNotification {
36
36
private static final String SOUND = "sound" ;
37
37
private static final String CONTENT_AVAILABLE = "content-available" ;
38
38
private static final String MUTABLE_CONTENT = "mutable-content" ;
39
- private static final String SUBTITLE = "subtitle" ;
40
39
private static final String CATEGORY = "category" ;
41
40
42
41
private static final String ALERT_VALID_BADGE = "Badge number should be 0~99999, "
@@ -50,12 +49,11 @@ public class IosNotification extends PlatformNotification {
50
49
private final boolean contentAvailable ;
51
50
private final String category ;
52
51
private final boolean mutableContent ;
53
- private final String subtitle ;
54
52
55
53
56
54
private IosNotification (Object alert , String sound , String badge ,
57
55
boolean contentAvailable , boolean soundDisabled , boolean badgeDisabled ,
58
- String category , boolean mutableContent , String subtitle ,
56
+ String category , boolean mutableContent ,
59
57
Map <String , String > extras ,
60
58
Map <String , Number > numberExtras ,
61
59
Map <String , Boolean > booleanExtras ,
@@ -69,7 +67,6 @@ private IosNotification(Object alert, String sound, String badge,
69
67
this .badgeDisabled = badgeDisabled ;
70
68
this .category = category ;
71
69
this .mutableContent = mutableContent ;
72
- this .subtitle = subtitle ;
73
70
}
74
71
75
72
public static Builder newBuilder () {
@@ -113,11 +110,7 @@ public JsonElement toJSON() {
113
110
if (mutableContent ) {
114
111
json .add (MUTABLE_CONTENT , new JsonPrimitive (1 ));
115
112
}
116
- if (null != subtitle ) {
117
- json .add (SUBTITLE , new JsonPrimitive (subtitle ));
118
- }
119
113
120
-
121
114
return json ;
122
115
}
123
116
@@ -130,8 +123,7 @@ public static class Builder extends PlatformNotification.Builder<IosNotification
130
123
private boolean badgeDisabled = false ;
131
124
private String category ;
132
125
private boolean mutableContent ;
133
- private String subtitle ;
134
-
126
+
135
127
protected Builder getThis () {
136
128
return this ;
137
129
}
@@ -202,15 +194,10 @@ public Builder setMutableContent(boolean mutableContent) {
202
194
return this ;
203
195
}
204
196
205
- public Builder setSubtitle (String subtitle ) {
206
- this .subtitle = subtitle ;
207
- return this ;
208
- }
209
-
210
197
211
198
public IosNotification build () {
212
199
return new IosNotification (alert , sound , badge , contentAvailable ,
213
- soundDisabled , badgeDisabled , category , mutableContent , subtitle ,
200
+ soundDisabled , badgeDisabled , category , mutableContent ,
214
201
extrasBuilder , numberExtrasBuilder , booleanExtrasBuilder , jsonExtrasBuilder );
215
202
}
216
203
}
0 commit comments