Detect registration of duplicate module/singleton types
Module type and singleton type names have to be unique but duplicates are not checked when the relevant android.Register...() func is called. Instead they are collated in lists and then registered with the Context later on, at which point duplicates are detected. That loses information that can be helpful in fixing the issue. This is not an issue when testing as the module and singleton types are registered directly with the Context. This change adds duplicate detection to the initRegistrationContext Register... methods prior to calling the android.Register... methods which should make it easier to detect duplicates registered from an init() function. Test: m checkbuild Bug: 146540677 Change-Id: I7f1a4b649072867717a9829c737a44454b12266c
Loading
Please register or sign in to comment