aidegen: Fix bug of generating module dependency information

Bug: 117588037
Test: cd $android_root;make aidegen;aidegen -m tradefed
Change-Id: I05712ef3243771605034e4e9a746b8e1081c3516
This commit is contained in:
patricktu 2018-10-11 18:33:16 +08:00
parent db69b6691f
commit bb640e0240
1 changed files with 1 additions and 1 deletions

View File

@ -1757,7 +1757,7 @@ func (j *Import) IDECustomizedModuleName() string {
// solution to get the Import name.
name := j.Name()
if strings.HasPrefix(name, removedPrefix) {
name = strings.Trim(name, removedPrefix)
name = strings.TrimPrefix(name, removedPrefix)
}
return name
}