Ensure update/deletes in the call log notify content observers.
Update/delete in CallLogProvider used to use DbModifierWithNotification
which took care of this. Due to a change made to CallLogProvider to use
a query builder class, DbModifierWithNotification was not being used any
Made the notifyCallLogChange accessible as a static method and also use it
in CallLogProvider on update/delete.
There is a bunch of other logic in DbModifierWithNotification in the
update method that needs to be migrated over, however this change fixes
the immediate bug.
Test: Manual test; clear the call log and verify Dialer recents lists
updates itself immediately.
Test: Manual test: clear a single row in the call log and verify dialer
recent list updates itself immediately.
Test: Added update/delete CTS tests that verify content observer triggers
for update and delete.
(cherry picked from commit 4c94266286279d545f3a770bad8a641d46164ee4)
2 files changed