ContentResolver 是否通知所有路径变体?

Does the ContentResolver notify all path variants?

我的内容 uri 有一个取决于内容的路径,例如content://controller/ContentItem/0/Favorites/RecentlyPlayed

我观察到当我用这个 uri 插入一些东西时,所有其他具有较短路径的 uri 也会被通知。

例子

我在以下位置插入内容:

content://controller/ContentItem/0/Favorites/RecentlyPlayed

同时通知:

content://controller/ContentItem/0/Favorites
content://controller/ContentItem/0
content://controller/ContentItem

这是通常的行为吗?

拉尔夫

Yes if you passed true for notifyForDescendents when registering that observer