@@ -195,6 +195,10 @@ public void onCreate(Bundle savedInstanceState){
195
195
GlobalUserPreferences .disableAltTextReminder =i .checked ;
196
196
GlobalUserPreferences .save ();
197
197
}));
198
+ items .add (new SwitchItem (R .string .sk_settings_single_notification , R .drawable .ic_fluent_convert_range_24_regular , GlobalUserPreferences .keepOnlyLatestNotification , i ->{
199
+ GlobalUserPreferences .keepOnlyLatestNotification =i .checked ;
200
+ GlobalUserPreferences .save ();
201
+ }));
198
202
items .add (new SwitchItem (R .string .sk_settings_translate_only_opened , R .drawable .ic_fluent_translate_24_regular , GlobalUserPreferences .translateButtonOpenedOnly , i ->{
199
203
GlobalUserPreferences .translateButtonOpenedOnly =i .checked ;
200
204
GlobalUserPreferences .save ();
@@ -226,11 +230,8 @@ public void onCreate(Bundle savedInstanceState){
226
230
items .add (new SwitchItem (R .string .notify_follow , R .drawable .ic_fluent_person_add_24_regular , pushSubscription .alerts .follow , i ->onNotificationsChanged (PushNotification .Type .FOLLOW , i .checked )));
227
231
items .add (new SwitchItem (R .string .notify_reblog , R .drawable .ic_fluent_arrow_repeat_all_24_regular , pushSubscription .alerts .reblog , i ->onNotificationsChanged (PushNotification .Type .REBLOG , i .checked )));
228
232
items .add (new SwitchItem (R .string .notify_mention , R .drawable .ic_fluent_mention_24_regular , pushSubscription .alerts .mention , i ->onNotificationsChanged (PushNotification .Type .MENTION , i .checked )));
233
+ items .add (new SwitchItem (R .string .sk_notify_update , R .drawable .ic_fluent_history_24_regular , pushSubscription .alerts .update , i ->onNotificationsChanged (PushNotification .Type .UPDATE , i .checked )));
229
234
items .add (new SwitchItem (R .string .sk_notify_posts , R .drawable .ic_fluent_alert_24_regular , pushSubscription .alerts .status , i ->onNotificationsChanged (PushNotification .Type .STATUS , i .checked )));
230
- items .add (new SwitchItem (R .string .sk_settings_single_notification , R .drawable .ic_fluent_convert_range_24_regular , GlobalUserPreferences .keepOnlyLatestNotification , i ->{
231
- GlobalUserPreferences .keepOnlyLatestNotification =i .checked ;
232
- GlobalUserPreferences .save ();
233
- }));
234
235
235
236
items .add (new HeaderItem (R .string .settings_account ));
236
237
items .add (new TextItem (R .string .sk_settings_profile , ()->UiUtils .launchWebBrowser (getActivity (), "https://" +session .domain +"/settings/profile" ), R .drawable .ic_fluent_open_24_regular ));
@@ -420,6 +421,7 @@ private void onNotificationsChanged(PushNotification.Type type, boolean enabled)
420
421
case REBLOG -> subscription .alerts .reblog =enabled ;
421
422
case MENTION -> subscription .alerts .mention =subscription .alerts .poll =enabled ;
422
423
case STATUS -> subscription .alerts .status =enabled ;
424
+ case UPDATE -> subscription .alerts .update =enabled ;
423
425
}
424
426
needUpdateNotificationSettings =true ;
425
427
}
0 commit comments