applied review comments.
- renamoed onResorceUpdated -> onStateChanged
- addResDependency -> addDependency
- remResDependency -> removeDependency