mirror of
https://github.com/google/pebble
synced 2026-10-16 00:04:12 +02:00
@@ -36,16 +36,16 @@ void ancs_filtering_record_app(iOSNotifPrefs **notif_prefs,
|
||||
// stored.
|
||||
|
||||
iOSNotifPrefs *app_notif_prefs = *notif_prefs;
|
||||
const int num_existing_attribtues = app_notif_prefs ? app_notif_prefs->attr_list.num_attributes :
|
||||
const int num_existing_attributes = app_notif_prefs ? app_notif_prefs->attr_list.num_attributes :
|
||||
0;
|
||||
|
||||
AttributeList new_attr_list;
|
||||
attribute_list_init_list(num_existing_attribtues, &new_attr_list);
|
||||
attribute_list_init_list(num_existing_attributes, &new_attr_list);
|
||||
bool list_dirty = false;
|
||||
|
||||
// Copy over all the existing attributes to our new list
|
||||
if (app_notif_prefs) {
|
||||
for (int i = 0; i < num_existing_attribtues; i++) {
|
||||
for (int i = 0; i < num_existing_attributes; i++) {
|
||||
new_attr_list.attributes[i] = app_notif_prefs->attr_list.attributes[i];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user